3

I want to draw circles of certain radius on a map using openlayers . But the latitude,longitude & radius values are given in a excel sheet.

How do I do this work in OpenLayers?

I heard that OpenLayers doesn't take data from excel sheet so to which format I have to change my excel file?

And how to draw circles on the map?

7

Circles in Openlayers

http://geographika.co.uk/samples/geodesic/

http://geographika.co.uk/creating-a-geodesic-circle-in-openlayers you will need your data in json - Google Spreadsheets can do this

http://spreadsheets.google.com/feeds/feed/key/worksheet/public/basic?alt=json-in-script&callback=myFunc

http://code.google.com/apis/gdata/samples/spreadsheet_sample.html

3
2

It has a built in function called createRegularPolygon that can be used like this:

var circle = OpenLayers.Geometry.Polygon.createRegularPolygon(
    new OpenLayers.Geometry.Point(0, 0),
    1,
    30
);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.