Possible Improvements for OpenStreetMap

Phoca Maps - displaying maps in Joomla! CMS
User avatar
Dautrich
Phoca Member
Phoca Member
Posts: 15
Joined: 02 Dec 2016, 11:41

Possible Improvements for OpenStreetMap

Post by Dautrich »

Hi,

I'm a frequent user of your maps extension and typically configure it to use OpenStreetMap (for privacy reasons). From my workflow, I would like to propose two improvements:
  • Could Phoca Maps remember the coordinates and the zoom level from the last action?
    When I want to add a marker, I will set it most probably in the range of the last selected section. Today, I have to start from world level every time (or have to copy lat and long from the last form). This is relatively cumbersome when I want to set a bunch of markers on one map.
Regards
Rolf

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48896
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Possible Improvements for OpenStreetMap

Post by Jan »

Hi,

- for displaying the markers, the L.AwesomeMarkers library is used and such can be overriden by CSS too, for example if we want to display red small circle as marker:

Image

in our user.css we add:

Code: Select all

.awesome-marker:has(.specific)  {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  margin-left: -5px !important;
  margin-top: -5px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.awesome-marker .specific {
  margin-top: 0 !important;
}
so the marker looks like:

Image

- remember - for now there is no such option, I think, maybe some modification with sessions, etc. could be done, the problem is with storing previous values, it can be in conflict with Joomla forms :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
Dautrich
Phoca Member
Phoca Member
Posts: 15
Joined: 02 Dec 2016, 11:41

Re: Possible Improvements for OpenStreetMap

Post by Dautrich »

Hi Jan,

thanks for the clarification about OSM markers. I didn't quite understand your documentation. Maybe you could add that to your docu.

Remember function: You might consider adding another database table, where you store the last 5 (?) lat-lon pairs. Offer these in a drop-down.

What do you think?

Regards
Rolf
User avatar
Dautrich
Phoca Member
Phoca Member
Posts: 15
Joined: 02 Dec 2016, 11:41

Re: Possible Improvements for OpenStreetMap

Post by Dautrich »

Hi Jan,

would it be possible to add an alternative marker version to the OSM part? Should be large enough to host the FA icon, but leaner in style (more like a pin)? Reason: If there are many markers close to each other, a large part of the map is covered.

https://imgur.com/a/7uy3tIR#HqJP3p7

Regards
Rolf

BTW: Your help screen on Imgur is no longer correct.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48896
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Possible Improvements for OpenStreetMap

Post by Jan »

Hi,

added to feature request list: https://github.com/PhocaCz/PhocaMaps/issues/10

but really no idea when I will have time to take a look at it (I am now adapting it to Joomla 6, so first it needs to be J6 ready)

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