Changing size of marker icons

Phoca Maps - displaying maps in Joomla! CMS
MDKev827
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 10 May 2015, 01:00

Changing size of marker icons

Post 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 ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Changing size of marker icons

Post 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
If you find Phoca extensions useful, please support the project
Post Reply