1

I'm creating my first app using maps and shapefiles.

I have some shapefiles with attached dbase databases and I would like to show these shapefiles as an overlay on a map.

I have JavaScript code that interprets the SHP and DBF and draws the map, but I don't know how could I put this shapefile on a map.

I thought to use Google Maps or another kind of maps as a base map.

I researched a lot of solutions but I didn't find any solution that really works.

3
  • You mention app: is this a website, or a mobile app? What platform are you working on? Have you considered Leaflet, since you're already working in JavaScript?
    – Erica
    Oct 21, 2014 at 12:06
  • A solution using leaflet would be to convert your shapefile to a geojson file (maybe using Quantum GIS or mapshaper, npmjs.org/package/mapshaper ), and then displaying this using leaflet. See leafletjs.com/examples/geojson.html . Another alternative would be OpenLayers, where this is also possible (see openlayers.org/en/v3.0.0/examples/geojson.html ).
    – til_b
    Oct 21, 2014 at 14:12
  • Thanks for both replies. My idea is use for mobile with Titanium. I'm able to create a web solution and use on mobile. I will try the Leaflet solution.
    – Marcomar
    Oct 21, 2014 at 16:22

1 Answer 1

5

Have you considered using a hosted solution? These days I only roll my own, when one of the cloud based services like ArcGIS Online or Mango don't have what I need out of the box. The spec you are describing is their bread and butter.

Personally I find that Mango has the best mobile client. Their pricing is also sharper than ArcGIS Online for smaller projects.

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.