jemproject / JEM-Project

JEM - an Event Manager for Joomla
https://www.joomlaeventmanager.net
GNU General Public License v3.0
27 stars 39 forks source link

OSM: avoid google geocomplete #1558

Open jojo12 opened 1 year ago

jojo12 commented 1 year ago

If you don't want to use google, then you don't want to use (see) geocomplete from google. So why not hide it? It would be good to have an alternative. What we don't have within osm is the possibility to correct the coordinates!

jojo12 commented 1 year ago

I tested: the following is only needed, if you use google with api-key, (should be there, if you have api-key, like me) for all other cases, it is not needed, and gives without api-key an error! in backend and frontend edit venue

Admin/views/editvenue/tmpl/edit.php $wa = $this->document->getWebAssetManager(); change Line 21 $wa//->useStyle('jem.geostyle') change Line 25 //->useScript('jem.geocomplete');

Exclude Line 383 – 430

Admin/views/editvenue/view.html.php Line 57 exclude $wa->registerStyle('jem.geostyle', 'com_jem/geostyle.css')->useStyle('jem.geostyle'); exclude Line 78 - 79 exclude Line 82

Site/views/editvenue/view.html.php exclude Line 181-183 Site/views/editvenue/tmpl/responsive/edit.php exclude Line 284 – line 322