[Geomoose-users] multiple rendering
Dan Little
theduckylittle at gmail.com
Thu Feb 19 14:37:23 PST 2015
The easy "cheat" with MapServer is to make them all apart of the same
group. Then change the individual references in GeoMOOSE to reference
the name of the group instead.
On Mon, Feb 9, 2015 at 3:46 AM, <geo.graefin at web.de> wrote:
> Hello,
>
> I have three layer sections in my mapfile and want to query their
> informations via the popup service and identify service. When I click on a
> feature in the map the information is displayed on three occasions, both in
> the pop-up window as well as the identification service. I have set the
> templates for each layer individually:
>
> MAP
> ...
> LAYER #first layer
> NAME 'campingplatz'
> ...
> METADATA
> WMS_TITLE "campingplatz"
> #identify
> 'identify_record' 'templates_unterkunft/identify.html'
> END
> PROJECTION
> 'init=epsg:4326' #projection of the layer
> END
> CLASS
> NAME unsercampingplatz
> EXPRESSION ("[kategorie]" = 'Campingplatz')
> STYLE
> SYMBOL "../img/haus-11-kl.png"
> SIZE 20
> END
> END
> TEMPLATE "unterkunft_popup.html" # this is required for WMS
> popups
> TOLERANCE 5000
> TOLERANCEUNITS METERS
> END #end of first layer
> LAYER #second layer
> NAME 'ferienhaus'
> ...
> METADATA
> WMS_TITLE "ferienhaus"
> #identify
> 'identify_record' 'templates_unterkunft/identify.html'
> END
> PROJECTION
> 'init=epsg:4326' #projection of the layer
> END
> CLASS
> NAME unserferienhaus
> EXPRESSION ("[kategorie]" = 'Ferienhaus')
> STYLE
> SYMBOL "../img/haus-10-kl.png"
> SIZE 20
> END
> END
> TEMPLATE "unterkunft_popup.html" # this is required for WMS
> popups
> TOLERANCE 5000
> TOLERANCEUNITS METERS
> END #end of second layer
> LAYER #third layer
> NAME 'hotel'
> ...
> METADATA
> WMS_TITLE "hotel"
> #identify
> 'identify_record' 'templates_unterkunft/identify.html'
> END
> PROJECTION
> 'init=epsg:4326' #projection of the layer
> END
> CLASS
> NAME unserhotel
> EXPRESSION ("[kategorie]" = 'Hotel')
> STYLE
> SYMBOL "../img/haus-1-kl.png"
> SIZE 20
> END
> END
> TEMPLATE "unterkunft_popup.html" # this is required for WMS
> popups
> TOLERANCE 5000
> TOLERANCEUNITS METERS
> END #end of third layer
> END #end of map
>
> What is the reason for this multiple rendering, which is obviously in
> connection with the number of the layer?
>
> Thank you in advance for your help or ideas!
>
> Greetings, Geograefin
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
More information about the Geomoose-users
mailing list