I've been using codeigniter google map v3 library by bio stall, currently i want to create some heatmap, it is already provided by googlemaps. documentation already cover on this URL
我一直在使用bioigniter谷歌地图v3库生物档,目前我想创建一些热图,它已经由googlemaps提供。文档已涵盖在此URL上
https://developers.google.com/maps/documentation/javascript/heatmaplayer#customize_a_heatmap_layer
but currently i little bit confuse how to use that heatmap on the Codeigniter library, which part that I've to modified to create a heatmap for Codeigniter google map v3 library ?
但目前我有点混淆如何在Codeigniter库上使用该热图,我要修改哪一部分为Codeigniter谷歌地图v3库创建热图?
2 个解决方案
#1
1
I found here a tutorial on how to use CodeIgniter in Google Maps API Library.
我在这里找到了有关如何在Google Maps API库中使用CodeIgniter的教程。
The library enables you to create a map and overlay multiple markers, polylines, polygons, rectangles, ground overlays and/or circles, all of which are fully customizable. The library also supports showing directions between two points, including the ability to show the textual directions alongside the map too, and marker clustering. The first stages of integration with the Google Places API are available for use too.
该库使您可以创建地图并叠加多个标记,折线,多边形,矩形,地面叠加和/或圆圈,所有这些都可以完全自定义。该库还支持显示两点之间的方向,包括能够在地图旁边显示文本方向,以及标记聚类。与Google Places API集成的第一阶段也可供使用。
For more information and some explanation, you can visit this video on how to use CodeIgniter in Google Maps API.
有关更多信息和一些说明,您可以访问此视频,了解如何在Google Maps API中使用CodeIgniter。
#2
1
According to the script in the document, the only part related to backend is to provide the points.
根据文档中的脚本,与后端相关的唯一部分是提供点。
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),
...
So you can either echo it in php like
所以你可以在php中回应它
<?php
//...
echo "new google.maps.LatLng($lat, $lng),\n"
//...
where $lat and $lng must be set in php as iterated through points, or return AJAX response in getPoints method.
其中$ lat和$ lng必须在php中设置为迭代通过点,或者在getPoints方法中返回AJAX响应。
#1
1
I found here a tutorial on how to use CodeIgniter in Google Maps API Library.
我在这里找到了有关如何在Google Maps API库中使用CodeIgniter的教程。
The library enables you to create a map and overlay multiple markers, polylines, polygons, rectangles, ground overlays and/or circles, all of which are fully customizable. The library also supports showing directions between two points, including the ability to show the textual directions alongside the map too, and marker clustering. The first stages of integration with the Google Places API are available for use too.
该库使您可以创建地图并叠加多个标记,折线,多边形,矩形,地面叠加和/或圆圈,所有这些都可以完全自定义。该库还支持显示两点之间的方向,包括能够在地图旁边显示文本方向,以及标记聚类。与Google Places API集成的第一阶段也可供使用。
For more information and some explanation, you can visit this video on how to use CodeIgniter in Google Maps API.
有关更多信息和一些说明,您可以访问此视频,了解如何在Google Maps API中使用CodeIgniter。
#2
1
According to the script in the document, the only part related to backend is to provide the points.
根据文档中的脚本,与后端相关的唯一部分是提供点。
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),
...
So you can either echo it in php like
所以你可以在php中回应它
<?php
//...
echo "new google.maps.LatLng($lat, $lng),\n"
//...
where $lat and $lng must be set in php as iterated through points, or return AJAX response in getPoints method.
其中$ lat和$ lng必须在php中设置为迭代通过点,或者在getPoints方法中返回AJAX响应。