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
Phoca Maps - more Icons
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Maps - more Icons
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 )
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';
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 21
- Joined: 01 Aug 2009, 20:12
Re: Phoca Maps - more Icons
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Maps - more Icons
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 21 Jan 2009, 11:13
- Location: Berlin
- Contact:
Re: Phoca Maps - more Icons
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Maps - more Icons
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 07 Mar 2010, 14:09
Re: Phoca Maps - more Icons
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...
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Maps - more Icons
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 11 Dec 2014, 05:11
Re: Phoca Maps - more Icons
Hi,
1: create new External Icon
2: In Icon Url : enter path to your icon, e.g. image/icons/like.jpg or url
3: save
Hope this help!
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
Hope this help!