Page 1 of 1

Changing size of marker icons

Posted: 10 May 2015, 10:53
by MDKev827
I use this phoca maps extension for years now, but since that time we had no customers which had special wishes like these ones. First they wanted to have their own company logo as marker icon in the map, which worked very well in the backend, but didnt show up in the frontend (although i searched and tried almost every hint in posts i´ve seen in this forum, we didnt get the individual icon to work properly). :idea:

In case, that an individual icon would not be possible, our customer wanted one of the marker icons from google, but bigger in size. So i searched in this forum and also in google how to do this. In your forum there was already a post, where a user first asked this question, how to get the size of icons bigger, but then replied that he got them bigger. But he didnt complain how to change the size. On Google Maps API i found this piece of code, but i dont know where to put it in... :?:

Code: Select all

 var image = {
    url: 'images/beachflag.png',
    // This marker is 20 pixels wide by 32 pixels tall.
    size: new google.maps.Size(20, 32),
    // The origin for this image is 0,0.
    origin: new google.maps.Point(0,0),
    // The anchor for this image is the base of the flagpole at 0,32.
    anchor: new google.maps.Point(0, 32)
  };
Could you please give me a hint where i can change the size of icons ? Is it a setting on phoca maps code, in the joomla database or on google maps api ?

Re: Changing size of marker icons

Posted: 11 May 2015, 00:24
by Jan
Hi, if you want to customize the code directly, you should see this php code:

administrator/components/com_phocamaps/helpers/phocamapsmap.php

see setMarkerIcon, and other methods.

Jan