Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

GeoJSON Map

$
0
0

Thanks for your reply T.

Unfortunately, in my case, in order to use "Extent" or "Map Center Point", I need to get the location of the shapes dynamically.

I need to get the location of the shapes while they are being created. So I can keep them in the json, and by selecting my countries somewhere else on the page (like some checkboxes), it can zoom in to the countries' shapes.

I tried this in Shape Create Event Handler, and assigned that to the center of the map, but it didn't work. It zoomed in to somewhere else.

    var bbox = e.shape.bbox();

     var center = bbox.center();

 

The only thing that worked for me to get the location, was Map, itself, Click Event:

click: function(e) { var location = e.location ​}

But it's not what I need.

 

Was wondering if you could help me.

 

Thanks


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>