Back to City Dynamic Maps Support

afonso2022
afonso2022

Hi! This plugin is amazing. However, as I am newbie on OctoberCMS, is there a simple way to display only the markers data as RAW? Thank you in advance!

City
City

Hello,

Thank you for your message. Could you please give me an example for a better understanding?

Internally, the plugin uses JSON format for transferring the markers to Google Maps. You can check it in the file: /plugins/city/googlemaps/components/mapdetails/init.htm

Code: const geoData = {{ __SELF__.property('geoData') | raw }};


For the test, on the page with the map, you can paste the code: {{ googleMap.property('geoData') | raw }}

instead of: {% component 'googleMap' %}

In this case, you will receive the JSON data of markers instead of the map.

Regards

1-2 of 2