How to add my own icon for markers?

Phoca Maps - displaying maps in Joomla! CMS
kinio2000
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 17 Aug 2010, 22:16

How to add my own icon for markers?

Post by kinio2000 »

Hi. I have my own icon for markers. It is possible to add it to the Phoca Maps? In editor I find a possibility to add them on the form but finally on the map - Phoca display only enable marker. I need 15-20 different icons for markers and Phoca offers only 10.
Sorry for my english ;-) and please help me in my marker adventure.
kinio2000
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 17 Aug 2010, 22:16

Re: How to add my own icon for markers?

Post by kinio2000 »

Is anybody knows how to do it?
sdhinternet
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 08 May 2009, 16:07

Re: How to add my own icon for markers?

Post by sdhinternet »

I would like this as well....
pjotr
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 22 Jun 2011, 19:36

Re: How to add my own icon for markers?

Post by pjotr »

me too :)
sd12013
Phoca Member
Phoca Member
Posts: 18
Joined: 21 Jul 2011, 01:53

Re: How to add my own icon for markers?

Post by sd12013 »

bump.

Replacing the existing icons with my own artwork is easy enough but if I upload my own icon, add it via the icons tab and publish it, then in the Marker creation designate my external icon, nothing shows on the map. :x

Bug? Or am I just doing something wrong?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to add my own icon for markers?

Post by Jan »

Hi, did you set the right path the the icon - check other icons and the paths to them
If you find Phoca extensions useful, please support the project
sd12013
Phoca Member
Phoca Member
Posts: 18
Joined: 21 Jul 2011, 01:53

Re: How to add my own icon for markers?

Post by sd12013 »

I did. I don't know where this is going wrong but here's my steps.
1. I go to the icons tab, select New and direct it to my external icon. I dropped it in the same folder as the others just to be sure. Screen cap: bit.ly/qwgf5u
2. Save it and make sure it's published (the icons is visible). Screen cap: bit.ly/qEdefB
3. Create a new marker. Screen cap: bit.ly/pwxkx8
4. Designate the external icon: Screen cap: bit.ly/ovillU
5. Save the marker and ensure it's published. Screen cap: bit.ly/p7noZ6
6. Test it on the frontend and the icon is missing: Screen cap: bit.ly/pcKVK3
7. Go back into the marker settings, set the External Icon pull down back to "Select Icon" and choose one of the existing pre-set icons like a star and save.
8. Test it on the frontend and the icon shows perfectly! Screen cap: bit.ly/qZRGxe

I remedied the situation by replacing one of the pre-set existing icons I knew I wouldn't use on my map with my own icon artwork and select it. That works perfectly.

Did I miss a step or am I doing something incorrectly?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to add my own icon for markers?

Post by Jan »

Hi, can I see the site where the map is displayed (with the external icon- to check its url in the javascript code)

Jan
If you find Phoca extensions useful, please support the project
sd12013
Phoca Member
Phoca Member
Posts: 18
Joined: 21 Jul 2011, 01:53

Re: How to add my own icon for markers?

Post by sd12013 »

Sure. This map of Germany has one marker set for Munich. It has the same external icon set as in my screen caps.
http://207.158.12.69/partnercenters/ind ... 03/germany

Thanks for your help.
Last edited by sd12013 on 03 Aug 2011, 01:07, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to add my own icon for markers?

Post by Jan »

Hi, try to set the full path (include http and domain name as the external icon)

Jan
If you find Phoca extensions useful, please support the project
Post Reply