Can I use same marker on more than 1 map?

Phoca Maps - displaying maps in Joomla! CMS
jane_allison
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 06 Feb 2009, 23:56

Can I use same marker on more than 1 map?

Post by jane_allison »

I would like to use my "home" marker on more than one map. It seems that should be possible, but I can't see how. I have been re-creating it for every map.

Also, it would be nice to be able to set a default for whether I want the marker window open or not, rather than having to choose this every time.
sd12013
Phoca Member
Phoca Member
Posts: 18
Joined: 21 Jul 2011, 01:53

Re: Can I use same marker on more than 1 map?

Post by sd12013 »

+1

This would be great! I'd like to have a "global" map that includes all of my locations but then also have regional maps with specific markers. Anyone have a code hack or a method of achieving this? Please?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can I use same marker on more than 1 map?

Post by Jan »

Hi, maybe I don't understand correctly, but you can paste a created marker to every map you need. :idea:
If you find Phoca extensions useful, please support the project
sd12013
Phoca Member
Phoca Member
Posts: 18
Joined: 21 Jul 2011, 01:53

Re: Can I use same marker on more than 1 map?

Post by sd12013 »

Maybe I'm missing something then?

In the marker details, I can only see an option of assigning it to a single map. And from the master listing or markers, I don't see an option to copy or paste a location to apply it to another map. I should mention I'm testing a J1.6 setup if that changes the available options.

It would be really sweet ( a feature request? :) ) if you had the option within the marker details page to assign the marker to multiple existing maps so we only had to manage a single database of locations.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can I use same marker on more than 1 map?

Post by Jan »

Hi, for now the map can have a lot of markers but not reverse, the marker cannot be displayed on every map, ... this feature is planned, but there is a problem with table references. for now it is 1:N, but M:N can be a little bit confusing, will look at it.

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: Can I use same marker on more than 1 map?

Post by sd12013 »

Thanks for the consideration. Adding this to future versions would be invaluable.
frog
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 22 Apr 2020, 23:13

Re: Can I use same marker on more than 1 map?

Post by frog »

Hello,

I have just implemented phocamaps on my website and I was surprised that it was not possible to share the same marker in multiple maps...

9 years after Jane_allison 's question, I agree with her. This would be a great improvement.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can I use same marker on more than 1 map?

Post by Jan »

Hi, there are many reasons for this:

- simplicity (not needed specific database and php functions to work with M:N relationship)
- faster loading
- marker is assigned to one map and it shares the location with the map. It means, if you have one marker in two different maps, it can even happen that such marker will be not focused in some of the map (zoom - location covering)
- etc.

I think that is is similar question like why Joomla! article can be assigned to only one category. As creator of Phoca Cart component where products can be assigned to more categories, I can say, it is really no easy and there are problems which are very hard to solve (like unique product url in case product is stored in two categories - duplicity issues, ordering, etc.)

:-( So this is the feature request which is written in feature request list, but it is not unambiguous it is should be realized or not :idea:

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