gmaps.js

Address geocode via jquery geocoder.geocode (400 Items)

◇◆丶佛笑我妖孽 提交于 2019-12-31 07:33:32
问题 I am trying to parse an json with 400 addresses and set map icons on each location. My problem is, that when I am looping over the items I get an error: OVER_QUERY_LIMIT. But what is the best way to set the position with the google geocode api? My function looks like this: function getAddresses(data) { var items, markers_data = []; if (data.addresses.length > 0) { items = data.addresses; for (var i = 0; i < items.length; i++) { var item = items[i] , street = item.address.street , zip = item

alerts are not showing in geofencing when marker is outside of polygon geofence in google maps

寵の児 提交于 2019-12-25 18:50:50
问题 i have code for geofencing , in that polygon shape is there while dragging one marker out side the polygon its giving alert , but i need it should give alert automatically when page loads instead of dragging manually to outside. code <head> <meta charset="utf-8"> <title>GMaps.js — Geofences</title> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=true&key=AIzaSyDci4vYApOxVdKqwlpXSv9h77AcWbNuzmQ&libraries=drawing"> </script> <script type="text/javascript" src=

Meteor : autorun won't make my code dynamic

走远了吗. 提交于 2019-12-25 09:03:20
问题 I'm working hard on a meteor App which goal is to dynamically display on a google map the path of a vehicle, for example a boat on the sea. Now, I see this library called gmaps.js, and since it is available on npm (just like google maps api) I decide to use this as a solution to draw of the map. So, I have one page that add a geographic position (/runs/send) in the database each time I click on a button (this is enougth for testing). Then, on my other page (/runs/show) the goal is to get that

Gmaps.js add/remove markers from array

拜拜、爱过 提交于 2019-12-23 12:08:31
问题 I would like to display or hide some markers when a user click on a checkbox. I'm using Gmaps.js and the code responsible for this is: // Check if the user wants to display points of interest $("#poi").click(function() { var poi_markers = []; if ($("#poi").is(':checked')) { // Get points of interest and display them on the map $.ajax({ type: "POST", url: "/ajax/poi.php", dataType: "JSON", cache: false, success: function(data) { $.each(data, function(key, value) { poi_marker = { marker: { lat:

Gmaps.js - multiple markers with dynamic infoWindow content

放肆的年华 提交于 2019-12-12 09:11:05
问题 I've been reading extensively on the topic of adding dynamically generated infoWindow content to Google Maps API v3 maps, but I'm having trouble finding answers that work for my implementation of the map (I'm using an existing script called gmaps.js). I have limited experience with javascript and PHP, so I'm hoping someone can point me in the right direction. Currently, I have my markers set up on a map I'm using for a Wordpress site. The markers are properly placed in accordance with the

gmaps.js add marker from PHP array

烂漫一生 提交于 2019-12-12 06:05:55
问题 I am trying to add a marker to my gmaps.js map. The long. and lat. values are stored in a database, which I select using a PHP Script. Once fetched, both of the long. and lat. values are stored in an array, under the variable $data. I wanted to use json_encode($data); in order to pass the variables, however I would have had to change the header to a json application, I have already echoed some PHP onto the page, therefore this is unfeasable. I have now tried echoing the json_encode into the

How to get polygon properties when a marker is placed on it

我怕爱的太早我们不能终老 提交于 2019-12-10 11:49:38
问题 Using google map Drawing Manager user draws the polygon .I want to get polygon properties(title,paths,..) when a marker(marker from drawing manager) is placed on it. Here I want to know how to get the properties of the polygon(title, paths) and then like to it in a variable. code : <html> <head> <title>Get Latitude and Longitude Coordinates of a Polygon - Google Maps API v3</title> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.17&libraries=drawing&sensor=true

Gmaps.js - multiple markers with dynamic infoWindow content

不羁的心 提交于 2019-12-04 17:56:16
I've been reading extensively on the topic of adding dynamically generated infoWindow content to Google Maps API v3 maps, but I'm having trouble finding answers that work for my implementation of the map (I'm using an existing script called gmaps.js). I have limited experience with javascript and PHP, so I'm hoping someone can point me in the right direction. Currently, I have my markers set up on a map I'm using for a Wordpress site. The markers are properly placed in accordance with the location coordinates specified in the database, but the corresponding infoWindow content (a building name

Gmaps.js stopped working

我是研究僧i 提交于 2019-12-04 06:34:19
问题 from one day to another the Gmaps.js Library stopped working... I've created a map with 3 Markers on it and they had InfoWindows and I've added a little routing option in the InfoWindow where you could've typed your address in and Gmaps routed you to that Point. Now without changing anything in the past 2 weeks, I can't get it to work anymore: The map loads without any problem but when I click on a marker the map kills itself. Heres the URL: http://gruber.tv/z/#standorte When I load the map

Address geocode via jquery geocoder.geocode (400 Items)

谁说我不能喝 提交于 2019-12-02 13:18:36
I am trying to parse an json with 400 addresses and set map icons on each location. My problem is, that when I am looping over the items I get an error: OVER_QUERY_LIMIT. But what is the best way to set the position with the google geocode api? My function looks like this: function getAddresses(data) { var items, markers_data = []; if (data.addresses.length > 0) { items = data.addresses; for (var i = 0; i < items.length; i++) { var item = items[i] , street = item.address.street , zip = item.address.zip , city = item.address.city , country = item.address.country; var geocoder = new google.maps