Page 1 of 1

Phoca Maps - more Icons

Posted: 16 Jun 2009, 21:25
by lars.noack
Hi everybody....

What must I do when I will have set more Icons?
In .../components/com_phocamaps/assets/images/ I have upload more directorys (gicon...) with the icons but when I add a new marker the new icons not shown....


Greetings from germany



Lars

Re: Phoca Maps - more Icons

Posted: 18 Jun 2009, 18:14
by Jan
Hi, you can use the default 5 icons listed in administration. It is not easy to add new icon into Google Maps, you need the icon and then you need to set all needed data for the icon, so this need to be done in code (customized), see:

administrator/components/com_phocamaps/helpers/phocamapsrenderfront.php

e.g. : grey icon:
( https://www.phoca.cz/demo/phoca-maps-demo-plugin )

Code: Select all

var phocaIcon = new GIcon();
phocaIcon.image = '/demo/components/com_phocamaps/assets/images/giconyellow/image.png';
phocaIcon.shadow = '/demo/components/com_phocamaps/assets/images/giconyellow/shadow.png';
phocaIcon.iconSize = new GSize(26,30);
phocaIcon.shadowSize = new GSize(41,30);
phocaIcon.iconAnchor = new GPoint(0,30);
phocaIcon.infoWindowAnchor = new GPoint(13,0);
phocaIcon.imageMap = [18,1,19,2,21,3,23,4,24,5,24,6,24,7,24,8,23,9,23,10,22,
11,22,12,21,13,20,14,20,15,19,16,19,17,18,18,17,19,18,
20,20,21,22,22,22,23,22,24,22,25,18,26,15,27,12,28,8,
29,4,29,4,28,3,27,3,26,3,25,3,24,3,23,2,22,2,21,2,
20,2,19,2,18,1,17,1,16,1,15,1,14,1,13,1,12,1,11,9,
10,10,9,10,8,11,7,11,6,12,5,12,4,13,3,14,2,14,1];
phocaIcon.printImage = '/demo/components/com_phocamaps/assets/images/giconyellow/printImage.gif';
phocaIcon.mozPrintImage = '/demo/components/com_phocamaps/assets/images/giconyellow/mozPrintImage.gif';
phocaIcon.printShadow = '/demo/components/com_phocamaps/assets/images/giconyellow/printShadow.gif';
phocaIcon.transparent = '/demo/components/com_phocamaps/assets/images/giconyellow/transparent.png';


Re: Phoca Maps - more Icons

Posted: 01 Aug 2009, 20:34
by jegbertzen
Hi,

I also would like to have more icons, as I would like the country flags as icons. I cannot get it to work with your info. Could you help me out?

tnx

Jeroen

Re: Phoca Maps - more Icons

Posted: 04 Aug 2009, 00:54
by Jan
Hi, as I wrote it is not so easy to crate icon for Google Maps, you need to check Google Maps API to learn how to do it :-(

Jan

Re: Phoca Maps - more Icons

Posted: 26 Jan 2010, 17:07
by modernruins.de
Hi Jan,

I'd also be interested in some more icons and I know about the difficulties to make own icons. But I'd be happy with some of those provided by Google Maps itself. So, my question - or request for a feature - is to introduce a choice for the google maps standard icon as an alternative to the red one with dot.

Thank you very much!

Frank
modernruins.de

Re: Phoca Maps - more Icons

Posted: 30 Jan 2010, 00:01
by Jan
Hi, I will take a look at the icons (this was changed for Google Maps API3) when I will change the API2 to API3 (but in API3 there are still missing tow main functions, so it will take some time :-( )

Jan

Re: Phoca Maps - more Icons

Posted: 10 Mar 2010, 10:17
by Iaco
Hi I've found this site for creating custom marker images...is pretty simple to make them you upload your image...press a button and download...i have the folder giconxxx with the same images as the default ones in phoca maps but i cannot choose them:( when i'm setting up a marker...

Re: Phoca Maps - more Icons

Posted: 11 Mar 2010, 14:26
by Jan
Hi, it easy to create an icon but it is not easy to add it into the system. so you can overwrite icons of some existing icon - just overwrite existing icon to your own.

Jan

Re: Phoca Maps - more Icons

Posted: 11 Dec 2014, 05:15
by luandoson
Hi,

1: create new External Icon
2: In Icon Url : enter path to your icon, e.g. image/icons/like.jpg or url

Code: Select all

http://yourdomain/images/icons/like.jpg
3: save

Hope this help!