Infrastructure Map Server Developer

Reply
Active Member
reno.sun.gis
Posts: 8
Registered: ‎05-24-2013
Message 1 of 4 (657 Views)

Select specific layer and feature by passing value to flexible layout (AIMS2014)

657 Views, 3 Replies
05-24-2013 06:51 PM
Valued Mentor
gluckett
Posts: 358
Registered: ‎10-10-2003
Message 2 of 4 (619 Views)

Re: Select specific layer and feature by passing value to flexible layout (AIMS2

06-10-2013 02:12 PM in reply to: reno.sun.gis

Hi,

I don't think the map.query is implemented anymore.

http://trac.osgeo.org/fusion/wiki/Cookbook/Map/Query

 

Instead, you may have to use the Web API to select the object, return the Selected XML and use that to highlight and zoom to the obect.

 

 

Active Member
reno.sun.gis
Posts: 8
Registered: ‎05-24-2013
Message 3 of 4 (610 Views)

Re: Select specific layer and feature by passing value to flexible layout (AIMS2

06-11-2013 08:25 AM in reply to: gluckett

Hello, 

 

Finally, I solve my this issue. 

 

I post my solution in the end of the post here: http://osgeo-org.1560.x6.nabble.com/Select-specific-layer-and-feature-by-passing-value-to-flexible-l...

 

Thank you for your reply :smileyhappy:

 

Valued Mentor
gluckett
Posts: 358
Registered: ‎10-10-2003
Message 4 of 4 (600 Views)

Re: Select specific layer and feature by passing value to flexible layout (AIMS2

06-12-2013 01:31 PM in reply to: reno.sun.gis

Hi, I put the solution to the auto-zoom to feature on load for Flexible Web Layouts here (http://mapguide.wordpress.com/2013/06/11/autodesk-infrastructure-map-server-auto-zoom-on-load/)

 

You can pass:

  • LAYERNAME (i.e. Parcels)
  • KEYNAME (i.e. ID or ADN)
  • KEY (ie. 1234 or 444)
  • ISSTRING (0 or 1) 

 

For example, this selects 2 roads in Sheboygan with an ID or 644 and 684:

http://localhost/mapserver2014/fusion/templates/mapguide/slate/index.html?LAYERNAME=Roads&KEYNAME=ID...

 

The example uses SLATE but it can use any Flexible Web Layout you wish.

 

Remember, "LOCALHOST" is just a trick to call your own computer as a server, usually you would use the actual name of your server.

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community