AW: [OpenLayers-Users] Measuring on open layer map,Pls help

Arnd Wippermann arnd.wippermann at web.de
Mon May 7 12:31:36 EDT 2012


First: most likely the css file with the declaration of the map div width
and height are not found.
Second : it is map.addLayers([lyr1, lyr2]) or map.addLayer(lyr1)

Arnd


 

-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von sacprasanna
Gesendet: Montag, 7. Mai 2012 07:47
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] Measuring on open layer map,Pls help

Hi all,

These days I am try to develop web map using open layers.I copy source code
from  http://openlayers.org/dev/examples/measure.html here  Then I changed
code to display my data.But it does not work, even map is also not
showing.In chrome shows "Uncaught TypeError: Cannot call method
'containsLonLat' of null"

http://osgeo-org.1560.n6.nabble.com/file/n4957082/measure.txt measure.txt is
the full code. 
Please forgive me about amount of data.
Really Thanks for your time.
What is the wrong of my code?Or is there are any method to measure on map?

--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Measuring-on-open-layer-map-Pls-help-tp4
957082.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list