From: gilberto d. s. a. <gs...@gm...> - 2016-02-11 12:46:37
|
hi. using googleapis tutorial i have created this code fragments: maps.js function initMap() { var map = new google.maps.Map(document.getElementById('map'), { center: {lat: 0, lng: 0}, zoom: 3, styles: [{ featureType: 'poi', stylers: [{ visibility: 'off' }] // Turn off points of interest. }, { featureType: 'transit.station', stylers: [{ visibility: 'off' }] // Turn off bus stations, train stations, etc. }], disableDoubleClickZoom: true }); } mapas.html <!DOCTYPE html> <html> <head> <style type="text/css"> html, body { height: 100%; margin: 0; padding: 0; } #map { height: 100%; } </style> </head> <body> <div id="map"></div> <script async defer src=" https://maps.googleapis.com/maps/api/js?key=your-teste-key&libraries=visualization&callback=initMap "> </script> <script src="map.js"> </script> </body> </html> please change your-teste-key to your. after that put this 2 files on your server and make a small test calling http://your-server-domain/your-path/mapas.html if your key is ok map is show. if blanks screen please open your java console (chrome control-shift-i) and look for messages or errors for example in my testes i get this message about referer but there are others, see [7]. after this we could prove this inside your php and make sure that things will work. ==================== Google Maps API error: Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error Your site URL to be authorized: http://my-url/tested/mapas.html @_.ab @ maps.googleapis.com/maps/api/js?key=my-tested-key&libraries=visualization&callback=initMap:35 ==================== [7] https://developers.google.com/maps/documentation/javascript/error-messages 2016-02-10 19:53 GMT-02:00 Edison Bustillos <edi...@gm...>: > hola, > > > Talvez pueden ayudarme a traducir weberp a español. > > Esta instalado bajo windows con WampServer Version 2.5 > > > SAludos, > Edison > > 2016-02-10 16:37 GMT-05:00 gilberto dos santos alves <gs...@gm...>: > >> Hi. my last tests with this, 2014 i have modifications because google do >> not need more any api. >> You could direct inquiries and get results with json, xml format. >> I find warnings that today google only limit number of interactions, some >> about (1 minute * 60min * 24hours) but i never used this limits by day. >> Here [1] we get json return and here [2] we get xml. >> See that url are encode %20 (blank space). this is a example with park >> downtown sp, brazil. >> >> [1] >> http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=parque%20da%20luz,SP,Brasil >> [2] >> http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=parque%20da%20luz,SP,Brasil >> >> >> 2016-02-10 18:10 GMT-02:00 wertthey <jp...@nu...>: >> >>> I have given this a few tries over the years; to use Google Maps and >>> have >>> not had alot of luck. The issue had generally been on my side with the >>> Google API. >>> >>> I just tried again, Ive been able to successfully get what I need >>> configured. It appears as though I am set with the Geocode Maintenance >>> and >>> also Enabled "Geocode Customers and Suppliers:" under the System >>> Parameter. >>> >>> When I ran the "Run GeoCode process (may take a long time)", all of my >>> Vendors and Customers successfully got a lat and long. ( I verified >>> that >>> in my database.), >>> >>> What is odd, is that I get a box for the map but it is blank. I >>> checked >>> the forums and have not found alot of ideas. Going through the Google >>> API >>> channels it seems like I have things setup properly. >>> >>> Has anyone ran across this before? I hope I am not missing something >>> obvious, is there a json or something chunk of extra code I am missing? >>> >>> < >>> http://weberp-accounting.1478800.n4.nabble.com/file/n4658495/BlankMap.jpg >>> > >>> >>> I am running on webERP version 4.11.5 Ubuntu Server 14.04 64 bit >>> >>> >>> >>> ----- >>> Using weberp since 2004, Thanks for all your hard work! >>> -- >>> View this message in context: >>> http://weberp-accounting.1478800.n4.nabble.com/Geocode-Google-Maps-Displays-blank-box-tp4658495.html >>> Sent from the web-ERP-developers mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> Site24x7 APM Insight: Get Deep Visibility into Application Performance >>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >>> Monitor end-to-end web transactions and take corrective actions now >>> Troubleshoot faster and improve end-user experience. Signup Now! >>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 >>> _______________________________________________ >>> Web-erp-developers mailing list >>> Web...@li... >>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >>> >> >> >> >> -- >> gilberto dos santos alves >> +55(11)9-8646-5049 >> sao paulo - sp - brasil >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Site24x7 APM Insight: Get Deep Visibility into Application Performance >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >> Monitor end-to-end web transactions and take corrective actions now >> Troubleshoot faster and improve end-user experience. Signup Now! >> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > -- gilberto dos santos alves +55(11)9-8646-5049 sao paulo - sp - brasil |