HI, i want to display all my points in the map and adjust zoom automatically based on the number of points, if there are more points all points should be shown with zoom out, if there are 1 point only that point has to be shown with max zoom level please suggest solution how to achieve this Thanks Kiran |
This is a OpenLayers question. Use a http://dev.openlayers.org/apidocs/files/OpenLayers/BaseTypes/Bounds-js.html , fill it with all your points, then zoom the OpenLayers viewport to the created bounds object using http://dev.openlayers.org/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomToExtent . answered 21 Feb '13, 20:06 gormo |
Where? You added Nominatim and JOSM as tags but I guess you are using either Leaflet or OpenLayers instead.
yes am using OpenLayers