Page 1 of 1

Possible Improvements for OpenStreetMap

Posted: 08 Aug 2025, 16:22
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

Re: Possible Improvements for OpenStreetMap

Posted: 11 Aug 2025, 14:21
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

Re: Possible Improvements for OpenStreetMap

Posted: 12 Aug 2025, 13:55
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

Re: Possible Improvements for OpenStreetMap

Posted: 13 Aug 2025, 08:16
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.

Re: Possible Improvements for OpenStreetMap

Posted: 16 Aug 2025, 15:20
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