I'm trying to implement a custom Google Maps implementation that uses data from Views GeoJSON feeds. I need a custom approach as I need to be able to add multiple data layers. So, I need to grab the JSON in my views and add it to the map as a data layer. My current approach is with a custom module which loads a block with my JS on a particular page. I have the application working with a map and I've added some static data but now my my question is what is the best way pull the data in my JS application? My views are all accessible via urls (e.g mysite/my-view1. mysite/myview3, etc, and I can get the JSON from the urls with a curl get request from testing in my terminal, I'm just wondering if there isn't another way to approach this?

Your Answer

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

Browse other questions tagged or ask your own question.