Phoca Maps - more Icons

Phoca Maps - displaying maps in Joomla! CMS
lars.noack
Phoca Member
Phoca Member
Posts: 10
Joined: 09 Dec 2008, 18:53

Phoca Maps - more Icons

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

Re: Phoca Maps - more Icons

Post 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';

If you find Phoca extensions useful, please support the project
jegbertzen
Phoca Member
Phoca Member
Posts: 21
Joined: 01 Aug 2009, 20:12

Re: Phoca Maps - more Icons

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

Re: Phoca Maps - more Icons

Post 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
If you find Phoca extensions useful, please support the project
modernruins.de
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 21 Jan 2009, 11:13
Location: Berlin
Contact:

Re: Phoca Maps - more Icons

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

Re: Phoca Maps - more Icons

Post 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
If you find Phoca extensions useful, please support the project
Iaco
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 07 Mar 2010, 14:09

Re: Phoca Maps - more Icons

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

Re: Phoca Maps - more Icons

Post 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
If you find Phoca extensions useful, please support the project
luandoson
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 11 Dec 2014, 05:11

Re: Phoca Maps - more Icons

Post 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!
Post Reply