Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is it necessary to add tile layer for making a GeoJSON data rendered in web browser using Leaflet or any other API ?

I have a geoJSON data (I obtained the GeoJSON data by converting .shp file to GeoJSON using ogr2ogr) of a small hypothetical network which I want to render in the browser. My network when opened in QGis is shown in this link

For the above network it makes no sense to add a Tile layer of OSM or any other service. Is there a way I can render the network shown above in the web using leaflet or any other API ?

I'm very new to GIS related thing. Thanks in advance for help.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

There's no need to use a tile layer to display geoJSON features in most APIs. This looks like it does what you want in Leaflet.

http://leaflet.cloudmade.com/examples/geojson.html

One word of warning though. This method will get very slow when you start displaying lots of features- it's then you need to look at using a tile layer for performance reasons.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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