How to Change Map Marker in GeoPress
Any idea how to change the map market in GeoPress? Please refer to http://www.whatsonchiangmai.com to see the issues I am having with the map position markers. Thanks for the help!
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?whatsonchiangmai,
This question has been asked previously here:
http://getsatisfaction.com/mapufactur...
So far, there isn't a quick and easy way to implement this feature (that i know of). You would have to dive into the source code and change the image you want.
I would suggest looking at the Google Maps API, especially the following page and check out the code in the Marker Examples section:
http://code.google.com/apis/maps/docu...
You should then be able to edit the geopress source code accordingly.
I’m confident
-
Inappropriate?Hi Johnstonian,
The link you provided to the old question provide no answer, so that is why we asked again.
Pointing folks to the API docs is not very helpful either, but thanks anyway :-)
This site is listed as the support site for GeoPress! Where are the developers who support the code??
So far, the only place for support is on the Google Maps API group, but this is not specific to GeoPress.
I thought this site was for support, but there are no supporters!
I’m not pleased with the reply.
-
Inappropriate?I would message, ajtuner, he is the support personnel for this project. I don't believe a solution for custom markers has been implemented yet. You'll have to change the source code yourself.
ajturner's profile is here: http://getsatisfaction.com/people/508...
I’m indifferent
1 person says
this answers the question
-
Inappropriate?We already tried to mod the code in mapabstraction.php (see below), but it still shows the default Google red marker.... that is why I am asking for support:
/**
* toGoogle returns a Google Maps compatible marker pin
* @returns Google Maps compatible marker
*/
Marker.prototype.toGoogle = function() {
var options = new Object();
if(this.labelText) {
options.title = this.labelText;
}
if(this.iconUrl){
baseIcon = new GIcon();
baseIcon.image = "images/dd-start.png";
/** baseIcon.shadow = "shadow.png"; **/
baseIcon.iconSize = new GSize(12, 20);
baseIcon.shadowSize = new GSize(12, 20);
baseIcon.iconAnchor = new GPoint(6, 10);
baseIcon.infoWindowAnchor = new GPoint(10, -5);
options.icon = baseIcon;
}
var gmarker = new GMarker( this.location.toGoogle(),options);
if(this.infoBubble) {
var theInfo = this.infoBubble;
GEvent.addListener(gmarker, "click", function() {
gmarker.openInfoWindowHtml(theInfo);
});
}
return gmarker;
I’m looking for help, but none so far!
Loading Profile...


