View Full Version : Goolge Map Pointers
Cesar Lebron
October 3, 2012, 04:34 AM
Hi guys, is there's a way of replacing the Google map markers for custom ones?
Chris Brown
October 3, 2012, 04:57 AM
I wud like to know this as well :)
Vladimir
October 3, 2012, 05:01 AM
Hello,
You can try to fix it the following way:
- open file libs/jquery/jquery.flmap.js;
- go to function setMarkers()
- find this code:
var icon = base.options.alphabetMarkers ? 'http://www.google.com/mapfiles/marker'+base.letters[i]+'.png' : null;
and change it to:
var icon = 'http://your_domain.com/plugins/browse_map/markers/marker.png';
Cesar Lebron
October 3, 2012, 06:52 AM
Hello,
You can try to fix it the following way:
- open file libs/jquery/jquery.flmap.js;
- go to function setMarkers()
- find this code:
var icon = base.options.alphabetMarkers ? 'http://www.google.com/mapfiles/marker'+base.letters[i]+'.png' : null;
and change it to:
var icon = 'http://your_domain.com/plugins/browse_map/markers/marker.png';
Thanks Vladimir, it worked!!
Chris Brown
October 3, 2012, 09:16 AM
Nice will try this when I get home
Wei Hong
May 27, 2015, 08:12 PM
Hi,
I'm using this for custom marker:
Hello,
var icon = 'http://your_domain.com/plugins/browse_map/markers/marker.png';
However, is there anyway that I can resize the marker? My marker img has site 128x128px, but i would like to shrink it to 30x30px. This way the marker will still look nice on retina display.
Wei Hong
May 28, 2015, 03:16 PM
Any idea how to? *I try to add this code right below:
icon.width = '30';
icon.height = '30';
It still doesnt work :(
Powered by vBulletin® Version 4.1.9 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.