Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom layer view

7 REPLIES 7
Reply
Message 1 of 8
simflex
366 Views, 7 Replies

Custom layer view

Hi again.

Hope you can be kind enough to assist me again.

By default, mapguide layer view is on the leftside of the map window.

We want the layers to appear on the right side of the map window.

Can someone assist, please.

Any sample code would be greatly appreciated.

Many thanks in advance
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: simflex

You can't change the position of the legend. Your only option would be to
turn it off (layersViewWidth=0) and then write your own custom legend. Many
people have created their own legends.

Andy

wrote in message news:5196085@discussion.autodesk.com...
Hi again.

Hope you can be kind enough to assist me again.

By default, mapguide layer view is on the leftside of the map window.

We want the layers to appear on the right side of the map window.

Can someone assist, please.

Any sample code would be greatly appreciated.

Many thanks in advance
Message 3 of 8
simflex
in reply to: simflex

As always, thanks very much, Andy
Message 4 of 8
Anonymous
in reply to: simflex

Hi,

How would you write your own custom legend?


Thanks





"Andy Morsell" wrote in message
news:5196242@discussion.autodesk.com...
You can't change the position of the legend. Your only option would be to
turn it off (layersViewWidth=0) and then write your own custom legend. Many
people have created their own legends.

Andy

wrote in message news:5196085@discussion.autodesk.com...
Hi again.

Hope you can be kind enough to assist me again.

By default, mapguide layer view is on the leftside of the map window.

We want the layers to appear on the right side of the map window.

Can someone assist, please.

Any sample code would be greatly appreciated.

Many thanks in advance
Message 5 of 8
simflex
in reply to: simflex

hi Srdjan,

Quite frankly, I have no idea.

I was hoping to see a sample script of how to do that but so far, there seems to be none. Turning off the legend is the easy part but actually writing the script is the hard part because first of all, I don't even know how to get started.

If you find out a way to do it, please share. I will do the same.

Thanks,
Message 6 of 8
Anonymous
in reply to: simflex

simflex wrote:
> If you find out a way to do it, please share. I will do the same.

It's moderately hard and takes some effort to maintain. You basically
need to use either DAT or Javascript to enumerate the layers, and
present them to the end user in a different layout. Any special items
like hierarchy, aggregation, or custom symbology needs to be maintained
by your application.

Our Habitat Atlas has a custom JS-based legend:
http://enviro.nanaimo.ca/index.cfm?tab_ID=3&content_ID=7

At this point I would strongly recommend waiting for MapGuide
Enterprise. Although it doesn't support legend repositioning out of the
box, one of the Autodesk developers posted a method for doing so:

https://mapguide.osgeo.org/servlets/ReadMsg?listName=users&msgNo=275

Jason
Message 7 of 8
Anonymous
in reply to: simflex

Another site with a very nice custom legend is the City of Tacoma. It can
be seen here: http://govme.cityoftacoma.org/govme/mapguidecs/mgmain.aspx

Andy

wrote in message news:5197561@discussion.autodesk.com...
hi Srdjan,

Quite frankly, I have no idea.

I was hoping to see a sample script of how to do that but so far, there
seems to be none. Turning off the legend is the easy part but actually
writing the script is the hard part because first of all, I don't even know
how to get started.

If you find out a way to do it, please share. I will do the same.

Thanks,
Message 8 of 8
meli-m
in reply to: simflex

Hi simfelx,

you will find some advices here:
https://mapguide.osgeo.org/servlets/ReadMsg?listName=users&msgNo=275

but I was'nt able to make it work yet.

greetings,

Melanie


I see it was posted before... Message was edited by: meli-m

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report