PWaddict Posted March 30, 2018 Share Posted March 30, 2018 @mel47 Remove "&callback=initMap" from src and it should be ok. 1 Link to comment Share on other sites More sharing options...
mel47 Posted March 30, 2018 Share Posted March 30, 2018 1 hour ago, PWaddict said: @mel47 Remove "&callback=initMap" from src and it should be ok. Oh... Don't know why but I was sure it didn't work if not. Thanks! Link to comment Share on other sites More sharing options...
mel47 Posted April 1, 2018 Share Posted April 1, 2018 Hum. Doesn't work all the time. I still have the error message "please add map.google.com script in your document head" even if it's there. Does something else could interfere? Because in some pages it's works fine. Link to comment Share on other sites More sharing options...
jacmaes Posted April 1, 2018 Share Posted April 1, 2018 @mel47 Try removing “async defer”. Link to comment Share on other sites More sharing options...
PWaddict Posted April 1, 2018 Share Posted April 1, 2018 @mel47 On my code I have it like this inside the head section and works perfect: <script src="https://maps.googleapis.com/maps/api/js?key=<?= $modules->get("FieldtypeMapMarker")->get("googleApiKey") ?>"></script> Link to comment Share on other sites More sharing options...
Marco Ro Posted April 4, 2018 Share Posted April 4, 2018 Hi, is there the possibility to have on click to the mark a box with some information? Now when I click on the mark I get redirected to a page in the backend. At moment I render the maps in this way: <?php $map = $modules->get('MarkupGoogleMap'); $places = $page->Dealer_Finder; echo $map->render($places, 'map_rp'); ?> I use this because I have a Maps field inside a Repeater Field and I need all mark in one map. All the information I render after the maps in a loop, I will like show an a part of this info in a box that appears on click to the mark. How I can do this? Link to comment Share on other sites More sharing options...
paulbrause Posted July 13, 2018 Share Posted July 13, 2018 On 6/1/2017 at 11:45 PM, Arcturus said: I'm having an issue in PW 3.0.62 where the module will only geocode an address when I manually click the checkmark between address and lat/lng off/on when editing the page within the admin. Based on what I've read here, it seems only the client-side geocoder is working? Additional details: I have both Google Maps and Google Places APIs working without issue on the front-end and have added my Maps key to the module's configuration My MapMarker-based field, "map", has a MapMarker: Error geocoding address notification and I can't find any elaboration Neither API has any issues with my address formatting/default address, with an example being 5 Bloor Street, Toronto, ON M4W 3T3 My addresses are mapping properly when I play with the checkbox (status goes from UNKNOWN to OK) I can't trigger the geocoding via the API Any ideas? Same problem here, but playing with the checkbox doesn't work either. Always getting "REQUEST DENIED" and i have absolutely no clue, why. Any ideas? 1 Link to comment Share on other sites More sharing options...
BFD Calendar Posted August 6, 2018 Share Posted August 6, 2018 Since Google introduced billing for Google Maps I get an error "This page can't load Google Maps correctly" on my maps. I have a working API key and enabled billing, do I need any changes in ProcessWire as well? Link to comment Share on other sites More sharing options...
zoeck Posted August 8, 2018 Share Posted August 8, 2018 On 8/6/2018 at 5:50 PM, BFD Calendar said: Since Google introduced billing for Google Maps I get an error "This page can't load Google Maps correctly" on my maps. I have a working API key and enabled billing, do I need any changes in ProcessWire as well? Had the same problem... now i switched to the Leaflet Map Version... and im very happy with it ? Link to comment Share on other sites More sharing options...
Peter Knight Posted August 8, 2018 Share Posted August 8, 2018 Anyone using Google Maps and unhappy with their recent changes might want to explore the updated ToS from maps service, Here https://venturebeat.com/2018/08/03/here-launches-new-freemium-plan-for-developers-in-response-to-google-maps-api-changes/ 2 Link to comment Share on other sites More sharing options...
BFD Calendar Posted August 9, 2018 Share Posted August 9, 2018 Thanks zoeck and Peter. Leaflet also uses Google, so I presume you'll run in the same problem sooner or later, no? For the Here maps, I assume it needs a bit of working under the hood of MapMarker to get it working? In the mean time it turns out everything now works after 48 hours of patience with Google and my provider (OVH).... Link to comment Share on other sites More sharing options...
biotech Posted August 20, 2018 Share Posted August 20, 2018 On 8/9/2018 at 5:53 AM, BFD Calendar said: Thanks zoeck and Peter. Leaflet also uses Google, so I presume you'll run in the same problem sooner or later, no? For the Here maps, I assume it needs a bit of working under the hood of MapMarker to get it working? In the mean time it turns out everything now works after 48 hours of patience with Google and my provider (OVH).... So what was the fix for MapMarker? Where would we add the API key in PW? Thanks! 1 Link to comment Share on other sites More sharing options...
marcus Posted August 22, 2018 Share Posted August 22, 2018 On 8/20/2018 at 5:17 AM, biotech said: So what was the fix for MapMarker? Where would we add the API key in PW? Thanks! In MapMarker's documentation there is a section about implementing the needed JavaScript file from Google: Quote ### How to use Add this somewhere before your closing `</head>` tag: ````````` <script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?sensor=false'></script> Search for this snippet in your template and change the value of src like this: Quote https://maps.googleapis.com/maps/api/js?key=XXXXXXXXXXXXX&sensor=false Where XXXXXX is your API key. See the Hello World example here (lower part of the code example): https://developers.google.com/maps/documentation/javascript/tutorial Link to comment Share on other sites More sharing options...
biotech Posted August 22, 2018 Share Posted August 22, 2018 Thanks Marcus! I was looking through the module files thinking that we manually need to update files to hold the API key, turns out that our module was out of date as well. Link to comment Share on other sites More sharing options...
digitex Posted August 30, 2018 Share Posted August 30, 2018 On 8/9/2018 at 8:53 AM, BFD Calendar said: Thanks zoeck and Peter. Leaflet also uses Google, so I presume you'll run in the same problem sooner or later, no? For the Here maps, I assume it needs a bit of working under the hood of MapMarker to get it working? In the mean time it turns out everything now works after 48 hours of patience with Google and my provider (OVH).... As far as I know Leaflet use OpenStreetMap which is not google. With the new changes to google maps I'm sure more people will turn to OpenStreetMap so some day with the uptick in usage they may become a pay service as well but not yet. I should also add I am converting all google maps over to leaflet. It has fewer styling options but looks good and works very well. Link to comment Share on other sites More sharing options...
BFD Calendar Posted August 30, 2018 Share Posted August 30, 2018 5 hours ago, digitex said: As far as I know Leaflet use OpenStreetMap which is not google. With the new changes to google maps I'm sure more people will turn to OpenStreetMap so some day with the uptick in usage they may become a pay service as well but not yet. I should also add I am converting all google maps over to leaflet. It has fewer styling options but looks good and works very well. Well I have over 4500 pages with map references (https://www.birthfactdeathcalendar.net/places/), so converting them to anything else than MapMarker and/or Google should be something that can happen sort of 'all at once'. Link to comment Share on other sites More sharing options...
tires Posted September 5, 2018 Share Posted September 5, 2018 I use the a FieldtypeMapMarker inside of a repeater field. Since the update of google api, the map don't display when i open a ne repeater. I shows only after i save the page. Is it a problem with the api, the field in combination with a repeater or with the configuration on my site? Link to comment Share on other sites More sharing options...
bee8bit Posted September 5, 2018 Share Posted September 5, 2018 22 minutes ago, tires said: I use the a FieldtypeMapMarker inside of a repeater field. Since the update of google api, the map don't display when i open a ne repeater. I shows only after i save the page. Is it a problem with the api, the field in combination with a repeater or with the configuration on my site? Hi tires, I think this may be related to a problem I had earlier: So, you might have to find a way (event, interval, ...) to trigger that init() when your maps becomes visible. Link to comment Share on other sites More sharing options...
tires Posted September 5, 2018 Share Posted September 5, 2018 Thanks for your answer bee8bit! This code lines are allready in the latest version of the InputfieldMapMarker.js Or do i have to change this part? Link to comment Share on other sites More sharing options...
tires Posted September 20, 2018 Share Posted September 20, 2018 On 9/5/2018 at 4:45 PM, tires said: I use the a FieldtypeMapMarker inside of a repeater field. Since the update of google api, the map don't display when i open a ne repeater. I shows only after i save the page. Is it a problem with the api, the field in combination with a repeater or with the configuration on my site? Any further ideas or solutions??? ? Link to comment Share on other sites More sharing options...
rst Posted October 17, 2018 Share Posted October 17, 2018 The way I was able to solve it, is you have to create 2 different api's. One for the front end, where you set restrictions to your domain name. And then another for this module where you set the restriction to your server's ip address. Also, make sure that geocoding api is enabled in google console. Hope this helps. 2 Link to comment Share on other sites More sharing options...
lewisnewson Posted December 11, 2018 Share Posted December 11, 2018 Hi All, So I am using the InputField MapMarker module to output some google maps onto my web pages. When adding them in the backend, all is well and there are no errors, however on the frontend of the site where I am printing it onto the page, I am getting an error saying "This page can't load Google Maps correctly". Example here: https://www.golfholidays.deence.com/destinations/golf-holidays-in-spain/suites-hotel-san-roque-club/ Looking in the console, is says about either a missing API key (which I have already added in the backend or me hitting my quota which I have raised to well above what is needed in my Google dashboard) Any help would be appreciated, Thanks! Link to comment Share on other sites More sharing options...
lewisnewson Posted December 11, 2018 Share Posted December 11, 2018 Fixed by swapping the google maps scripts in the head with this: <script src="https://maps.googleapis.com/maps/api/js?key=<?= $modules->get("FieldtypeMapMarker")->get("googleApiKey") ?>"></script> Link to comment Share on other sites More sharing options...
mel47 Posted December 24, 2018 Share Posted December 24, 2018 Hi I have a problem that I didn't have before (not sure when was "before" though...). However all last year' pages displayed a correct localization. If I typed an address, it will not localized until I check/uncheck the geocode true/false. However, saving the page doesn't retain the "ok rooftop" result, and return to "request denied". After a couple of saving pages, I eventually get lat/long saved but the status is still "request denied". Furthermore, I discovered I can't modify addresses on certain pages (those created by guest (form builder)). It may be related to my similar problem about image undeletable. Under 3.0.123, both local and production. Google API is enabled for billing. Anyway, address with a previous correct localization are displayed fine. Thanks! Link to comment Share on other sites More sharing options...
wbmnfktr Posted December 24, 2018 Share Posted December 24, 2018 Have a look at your console in Chrome or Firefox. There should be more details telling you what the problem is. I have had a similiar issue due to a missing setting in Google API Console. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now