[mapguide-users] Re: how to add an vehicle icon and trace line to mapguide ?

Zac Spitzer zac.spitzer at gmail.com
Tue Sep 27 09:17:17 EDT 2011


congratulations! it's quite a challenge, it took me a while too!

On Tue, Sep 27, 2011 at 7:49 PM, captainst <quchenxy at yeah.net> wrote:

> After 2 days's painful struggle with html, asp.net, openlayers,
> javascripts,
> etc , I managed to come up with a working demo:
>
> http://osgeo-org.1803224.n2.nabble.com/file/n6835328/openlayer_icon_with_mapguide.jpg
>
> The steps are:
>
> 1. Create a map
> 2. Create a layer with Mapguide definitions (Mapguide.html in openlayers
> example)
> 3. Add the layer to the map
> 4. Create a vector layer with /new OpenLayers.Layer.Vector/, and insert a
> style map, in which specify the "externalGraphic" attribute to the external
> .png file (vector-features.html in openlayers example)
> 5. Add the layer to the map
> 6. Create a point with /new OpenLayers.Geometry.Point(xxx, yyy)/;
> 7. Create a vector feature using the point by /new
> OpenLayers.Feature.Vector(point)/
> 8. Add some attributes to the vector feature if the style map mentioned
> above uses "${}"
> 9. add the feature to the vector layer by /vectorLayer.addFeatures();/
>
> Very rustic steps for beginners like me. It is really a challenge to make a
> working stuff like this if you know almost nothing about html, javascript,
> openlayers ...
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/how-to-add-an-vehicle-icon-and-trace-line-to-mapguide-tp6824597p6835328.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>



-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20110927/f09eefb9/attachment.html


More information about the mapguide-users mailing list