[Geomoose-users] multiple rendering
James Klassen
klassen.js at gmail.com
Fri Feb 20 06:58:45 PST 2015
My guess is the underlying problem is the TEMPLATES are being 'rendered'
too often. This is likely because you are referencing the same data in
multiple layers but using classes to filter what each layer renders to the
map. Try putting the TEMPLATE statements in those classes so what is
rendered to the TEMPLATE is similarly filtered. (Otherwise MapServer will
use all of the data, unfiltered, for the TEMPLATE and every item will be
rendered multiple times).
On Feb 20, 2015 8:25 AM, <geo.graefin at web.de> wrote:
> Thank you for your answer, Dan!
>
> I have already tested the grouping functionality. Is it right that either
> no layer can be selected or no? For my requirements also individual layers
> should be selected.
>
> Greetings, Geograefin
> *Gesendet:* Donnerstag, 19. Februar 2015 um 23:37 Uhr
> *Von:* "Dan Little" <theduckylittle at gmail.com>
> *An:* geo.graefin at web.de
> *Cc:* "GeoMOOSE Users List" <geomoose-users at lists.osgeo.org>
> *Betreff:* Re: [Geomoose-users] multiple rendering
> 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
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20150220/ce277bbc/attachment.html>
More information about the Geomoose-users
mailing list