[Users] Displaying customs icons in one layer
Pol
d.paolino at gmail.com
Tue Mar 23 22:11:41 CET 2010
Hello,
I just discovered GeoExt and OpenLayers 2 days ago and I'm rebuilding my
project using GeoExt (it was using the very good GmapPanel before).
First of all, thanks for it, it's a very good job !
I subscribe to this list because I have a small problem.
I have a single URL who return me all the markers to display on the map.
Those markers must have different icons.
I don't want to create multiple layers for each kind of markers, that would
make too much external calls and slow down the whole stuff.
I have pasted some bits of code here: http://pastebin.com/Uee7xdzJ
I suppose that I have to add a property like:
imgRef: 1
in my json response to identify the picture to display in javascript later,
but I don't know where to put it and how to retrieve it.
Can you help me ?
Thanks.
-Pol D.-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100323/a716e4a2/attachment.htm
More information about the Users
mailing list