-
1. Another Google Maps Extension
Jean-Jacques Jesua Sep 28, 2011 4:31 PM (in response to Alexander Karlsson )Well done Alexander !
Maybe you should put your example in the share qv section
regards
JJ
-
2. Another Google Maps Extension
Jean-Jacques Jesua Sep 28, 2011 4:53 PM (in response to Alexander Karlsson )Just a question to understand well.
How can I center and zoom the map on my selection ?
Can I Use the variables var_mid_Lat, var_mid_Long, var_zoom directly in the javascript file ? and how ?
Thanks
JJ
-
3. Another Google Maps Extension
Alexander Karlsson Oct 3, 2011 7:02 AM (in response to Jean-Jacques Jesua)Sorry for not getting back to you earlier.
The QV script that has been floating around for static map integrations is not used for this extension.
I have not exposed those settings in the properties dialog but if you open up the script.js file you can modify this line to define your map center:
var center = new google.maps.LatLng(59.315605, 17.951835);
A few lines below you can also fine tune the intial zoom level if you like. Or specify a different map if you like, I went with a roadmap but you could tweak it to show a satelite map if you like.
Another tweak that you might want to do is to tweak the grid size that determains when the pins should be "grouped" or not.
Change the line, var mcOptions = {gridSize: 30, maxZoom: 15};, to suit your needs.
I have also included a sample function to build your own marker text. Now it shows the number of items in the cluster, but you might want it to show for example average sale size in the cluster and so forth.
For this specific client we built a function so they could switch between different metrics on the markers, for example average sale, number of customers and so forth.
And sorry for the leangthy answer
-
4. Another Google Maps Extension
Jean-Jacques Jesua Oct 3, 2011 2:38 PM (in response to Alexander Karlsson )Thanks Alex for your answers.
I have seen the script in js file.
My question was to know if it's possible to replace lat/long in the formula :
var center = new google.maps.LatLng(59.315605, 17.951835);
with coordinates calculated from your selection, ie, the 2 variables var_mid_Lat(Long) which are calculated in QV.
Same question with the zoom.
Regards and thanks again for your effort
JJ
-
5. Another Google Maps Extension
Alexander Karlsson Oct 3, 2011 3:34 PM (in response to Jean-Jacques Jesua)Valid point since I redraw the map for each data update, probably should not do that
And no, I am not sure. The only way I have found to reference a variable is through a input box so far.
Anyone else has any insights on this?
-
6. Another Google Maps Extension
Alexander Karlsson Nov 8, 2011 5:45 PM (in response to Alexander Karlsson )Updated orginal post and version of the extension. Please update any old versions floating around out there.
-
7. Another Google Maps Extension
Alessandro Furtado Nov 17, 2011 9:20 AM (in response to Alexander Karlsson )Hello,
How I can put a description in the location? In your example, you load lat,lng and Desc, but how can I show a Desc?
Thanks,
Alessandro Furtado
-
8. Another Google Maps Extension
fhh Nov 23, 2011 10:45 AM (in response to Alexander Karlsson )Hot stuff
-
9. Another Google Maps Extension
Suky Dhak Dec 15, 2011 5:34 PM (in response to Alexander Karlsson )Alex
This looks cool. If I select the data in the list object the values change as expected but does not work if i select the pointers from within the map.
Is that possible?
Suky
-
10. Another Google Maps Extension
Alexander Karlsson Dec 15, 2011 6:05 PM (in response to Suky Dhak )Yes, you could add an onclick event to the both the cluster markers and the actual pushpin.
However since Google has decided to charge quite a hefty license fee to put anything built on Google Maps API into production this sort of killed my motivation to give this extension any more love
I will be making something similar for openstreetmap, it's free!, as soon as I get some spare time.
-
11. Re: Another Google Maps Extension
Krishnan G Dec 16, 2011 1:11 AM (in response to Alexander Karlsson )Hi,
This is not working in my machine. can u tell me what might be the reason.
-
12. Another Google Maps Extension
Bastien Rogowski Feb 9, 2012 11:06 AM (in response to Alexander Karlsson )Hi,
Very cool extension!
Once I've tried changed var center = new google.maps.LatLng(-31.503629, 145.546875) but once I've done that, your exemple does not seem to work anymore...
Any idea why?
-
13. Another Google Maps Extension
Bastien Rogowski Feb 9, 2012 11:32 AM (in response to Bastien Rogowski )Ok you just need to add double quotes to the values.
Regards,
Bastien.