I have a static web page with inline json somewhat like so
var points = [
{"i": 1, "n": "foo", "d": "About foo", "c":[- 8.3604, 43.3155]},
{"i": 2, "n": "bar", "d": "About bar", "c":[ 18.4222, 116.3155]},
..
{"i": 250, "n": "qux", "d": "About qux", "c":[- 22.6045, 15.5813]}
];
I want to display the above points on the map (coords "c" are in lon/lat, and
the base layer is Google, so I am assuming I have to transform each point), and
enable popups with further information on each point. Reading the docs and
looking at some of the message, it seems that using a marker layer for doing
the above is discouraged, and folks writing new code (such as myself) are
steered toward vector layer.
First, is that correct? And, two, is there an example/tute on doing the above
with a vector layer?
Many thanks,
--
Puneet Kishor
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users