[OpenLayers-Users] Adding new Points of Interest before the map div

Jürgen Dankoweit Juergen.Dankoweit at T-Online.de
Wed Sep 12 11:52:57 PDT 2012


Hello Markus,

Am 12.09.2012 20:42, schrieb Marco Baumgärtner:
> Hello.
> 
> I am using openlayers with osm.
> 
[...]

> So basically I want to add new points somewhere in code before the map
> div. How do I need to structure the javascript-parts to do that?
> 
> Best and thanks for your efforts.


Well, you could do that in the following way:
1. Initialize the renderer
2. Initialize the projections
3. Create styles and stylemaps
4. Create an layer
5. Add all POIs to that layer
6. Initialize the map
7. Add the layer to the map

For the first five points you don't need to create a map.

I hope this short description helps you

Best regards

Jürgen

-- 
Meine stets unfertige Homepage: www.dankoweit.de


More information about the Users mailing list