2

Is there a service that allows me to draw on an OpenLayers map, and see the resulting GeoJSON?

3 Answers 3

3

You could use something like jsfiddle or jsbin and manipulate the map using javascript, eg http://jsbin.com/exabev/1/edit.

This will allow you to make live changes and see them on the map in the same window.

0
1

Your question is a bit ambiguous. Are you looking for an existing service, or want to create one? Or are you trying to set something up for your users to output GeoJSON?

OpenLayers natively supports GeoJSON and can write to it as well. You should look at this example and see how they write out to different formats. It won't be difficult at all to extend and add GeoJSOn to the dropdown.

http://openlayers.org/dev/examples/vector-formats.html

3
  • I'm looking for an existing service.
    – wulfgarpro
    Commented Dec 6, 2012 at 0:01
  • then why Openlayers if you're really just after GeoJSON output?
    – Vadim
    Commented Dec 6, 2012 at 0:47
  • Any visualisation would be fine - as long as I can draw a polygon and be given the GeoJSON representation.
    – wulfgarpro
    Commented Dec 6, 2012 at 1:43
0

You can do this in QGIS. You need to first download and install it, and then install the Openlayers plugin. Add a layer from OpenLayers and zoom to your area of interest (it can sometimes take a few seconds to load and update the layer). Then, you can create a new vector layer, click on the editor icon, and draw over the basemap. You can then save your layer as a GeoJson (right click on layer, and choose GeoJson).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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