google-maps-api-3

How to remove square and circle option from DrawingManager

本小妞迷上赌 提交于 2019-12-25 20:01:16
问题 I am tyring to get it so my DrawingManager only has the option to pan and have a polygon, but I can't figure out how to remove the rest of the options (polyline, square, circle).. I define my DrawingManager and have tried removing the rectangleOptions and circleOptions but that doesn't seem to do anything. var polyOptions = { strokeWeight: 0, fillOpacity: 0.45, editable: true }; drawingManager = new google.maps.drawing.DrawingManager({ markerOptions: { draggable: true }, polylineOptions: {

Calculate Distance Between Two Postcodes in php [closed]

廉价感情. 提交于 2019-12-25 19:46:43
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I'd like to calculate the distance between two postal codes in India. I've found the Google Map API and am trying to use it with this code: $url = "http://maps.googleapis.com/maps/api/distancematrix/json?origins=144216& destinations=160017&mode=driving&language=en-EN&sensor=false"; $data = @file

Every infowindow is displaying the same data maps api v3

删除回忆录丶 提交于 2019-12-25 19:42:56
问题 I am really stuck on something. Every map marker's infowindow is displaying the same info. It seems to be the content at the end of an array that i use to store content nodes every time. I am pretty sure it is because the infowindow is not being attached to the proper marker var markers = []; var contentArray = []; var titleArray = []; var latlngArray = []; var map; //var infowindow; var concert; function defaultMap() { //Latitude: 38 //Longitude: -97 //window.alert("inside function"); var

Every infowindow is displaying the same data maps api v3

泪湿孤枕 提交于 2019-12-25 19:41:13
问题 I am really stuck on something. Every map marker's infowindow is displaying the same info. It seems to be the content at the end of an array that i use to store content nodes every time. I am pretty sure it is because the infowindow is not being attached to the proper marker var markers = []; var contentArray = []; var titleArray = []; var latlngArray = []; var map; //var infowindow; var concert; function defaultMap() { //Latitude: 38 //Longitude: -97 //window.alert("inside function"); var

Stacking Map Styles (Google Maps API)

ぃ、小莉子 提交于 2019-12-25 19:31:00
问题 So I can't find an answer to this, but I know it's possible, because I've seen it. I'm trying to toggle specific style options on my custom styled map without having to reinitialize the map and losing any pins dropped, or locations searched. For example, turning off and on road labels. I have accomplished this in a hacky way where I've created two complete style objects, and I switch between them with map.setMapTypeId . The problem with this is that a) it's very repetitive, and b) I have a

Stacking Map Styles (Google Maps API)

你说的曾经没有我的故事 提交于 2019-12-25 19:29:59
问题 So I can't find an answer to this, but I know it's possible, because I've seen it. I'm trying to toggle specific style options on my custom styled map without having to reinitialize the map and losing any pins dropped, or locations searched. For example, turning off and on road labels. I have accomplished this in a hacky way where I've created two complete style objects, and I switch between them with map.setMapTypeId . The problem with this is that a) it's very repetitive, and b) I have a

Cant add markers to custom tile map

做~自己de王妃 提交于 2019-12-25 18:57:36
问题 I'm new to coding for Google Maps. Ive been trying to make myself a map using custom image tiles (Out of World of Warcraft) and i've been following a guide here: http://facepunch.com/showthread.php?t=1184658 Ive got the map showing and everything like that working. But now I'm trying to add markers and they won't show up, Can anyone help? Heres my code: (Without the marker code in there.) <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1, maximum

Why Can't I Click “Enable” in Google Cloud to Enable Map GeoCoding?

天涯浪子 提交于 2019-12-25 18:57:21
问题 I was referred here after positing this problem Google's forum: https://support.google.com/maps/thread/10640635?hl=en I am at the point now where I have a new API key, have billing enabled, and still can't enable GeoCoding due to grayed out box that will never render right no matter how many times I reload. Whenever I do a simple map using the Maps JavaScript API I get an error saying that I can't display it properly and can only use it for development purposes even though that API is enabled

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=

Displaying marker with latlong json data in Biostall-google-maps-V3 API Library issue

末鹿安然 提交于 2019-12-25 18:50:20
问题 i have a simple AJAX that will get all data from MYSQL with my controller then display all data with its latitude and longitude when searched: $(document).ready(function () { $("#searchDataToMarker").keyup(function () { var value = $(this).val(); $.ajax({ type: "POST", url: "<?php echo base_url('Maps/mapSearchDataInMarker') ?>", data: { 'searchDataToMarker': value }, dataType: "JSON", success: function (searchMapDataResult) { if (searchMapDataResult.length !== null || $('searchDataToMarker')