Closed (fixed)
Project:
farmOS
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2016 at 13:11 UTC
Updated:
7 Apr 2023 at 00:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
m.stentaComment #3
m.stentaI have a very rough fix for this - which requires a patch to the Openlayers module. Patch attached.
The fix essentially detects when the Openlayers zoom level is greater than the Google Maps zoom level - because the Google Maps API will stop zooming after a certain point, but the Openlayers map will still allow it. When this happens, this patch will switch to the ROADMAP layer type.
This does NOT fix the problem entirely. Google Maps and Openlayers will still be at different zoom levels. But, for the purposes of farmOS, this helps tremendously when you are drawing new shapes. The satellite/hybrid layer will show imagery that does not match the actual zoom level of the drawings, which causes incorrect placement. At least with ROADMAP, it's only the roads and other features that will be off - instead of the actual satellite imagery. Since most drawings in farmOS are done in fields and other non-road areas, this is generally OK.
It's not a perfect fix, but it will help.
I will include this patch in the farmOS drush makefile and increase the default zoom of all farmOS maps to 24.
Comment #4
m.stentaMoving old issues to the canonical farmOS project for easier searching. Apologies for email spam if anyone is following these. :-)