Hi there,
I'm trying to migrate a simple map application with clickable markers to API v3. According to the
new documentation, all OpenLayers 3 examples should also work with the SwissTopo Geo API v3. However, I cannot access objects like
OpenLayers.Layer,
OpenLayers.Features, etc.
When I try to use the layer created by
ga.layer.create(...) and the map created by
new ga.Map(), the objects are not actual OpenLayers layers nor maps. I get lots of errors like "
layer.addFeatures is not a function".
I would appreciate any help to get one of the OpenLayers marker examples running:
-
http://openlayers.org/dev/examples/marker-shadow.html-
http://openlayers.org/dev/examples/osm-marker-popup.htmlKind regards,
Matthias Dreier