>
>
> // This is the LatLng I meant, any possible way to load these from a
> database?
>
> function getPoints() {
>
> return [
>
> new google.maps.LatLng(40.761916,-73.9228569),
>
> new google.maps.LatLng(42.35047,-71.07613),
>
> new google.maps.LatLng(42.3456382751,-71.0715713501)
>
> ]
>
> }
>
> </script
>
Well perhaps the 'simplest', is just to have this block of codes generated
by server side code.
Like PHP. Have it connect to database, and write out all the lines. Ie the
HTML (including JS) of the actual map page, is itself dynamically
generated.
Otherwise, could have PHP (or similar) output some sort of intermediate
file. Eg a JSON file.
The 'map' page then downloads the "data" as a *separate *HTTP request. AJAX
style.
Its not excactly the same, but the concept is discussed here:
https://developers.google.com/maps/documentation/javascript/mysql-to-maps
(in that case its creating seperate placemarks, in your case you store up
the points, and pass it to the HeatMap.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.