Show memory card on Codeigniter googlemap v3 library

I am using google map v3 library for catigniter library using bio stall, currently I want to create some heatmap, it is already provided by googlemaps. the documentation already applies to this URL

https://developers.google.com/maps/documentation/javascript/heatmaplayer#customize_a_heatmap_layer 

but currently i'm a bit confused how to use this memory card in the Codeigniter library, what part should I change to create a memory card for google map v3 Codeigniter library?

+7
javascript php codeigniter google-maps-api-3
source share
2 answers

I found a tutorial here on how to use CodeIgniter in the Google Maps API API .

The library allows you to create a map and overlay several markers, polylines, polygons, rectangles, overlays on the ground and / or circles, which are fully customizable. The library also supports showing directions between two points, including the ability to display text directions along with a map and clustering markers. The first steps in integrating with the Google Places API are also available for use.

For more information and some explanation, you can visit this video on how to use CodeIgniter in the Google Maps API.

+1
source share

According to the script in document , the only part related to the backend is to provide dots.

 function getPoints() { return [ new google.maps.LatLng(37.782551, -122.445368), new google.maps.LatLng(37.782745, -122.444586), new google.maps.LatLng(37.782842, -122.443688), new google.maps.LatLng(37.782919, -122.442815), new google.maps.LatLng(37.782992, -122.442112), new google.maps.LatLng(37.783100, -122.441461), new google.maps.LatLng(37.783206, -122.440829), new google.maps.LatLng(37.783273, -122.440324), new google.maps.LatLng(37.783316, -122.440023), new google.maps.LatLng(37.783357, -122.439794), new google.maps.LatLng(37.783371, -122.439687), ... 

This way you can either echo in php like

  <?php //... echo "new google.maps.LatLng($lat, $lng),\n" //... 

where $ lat and $ lng should be set in php as iteration through dots or return an AJAX response in the getPoints method.

+1
source share

All Articles