google-maps-api-3

Google Maps: Hide country borders

旧巷老猫 提交于 2019-12-31 13:52:12
问题 I'm pretty sure geometry.stroke option allowed to hide country borders on the map. { featureType: "administrative.country", elementType: "geometry.stroke", stylers: [ { visibility: "off" } ] } But today I was wondering that's not working as expected, I still see the borders. Here is a code example: http://jsfiddle.net/xuvffdsn/ Any suggestions how to hide country borders? 回答1: The fiddle you provided seems to work correctly for me (in that it hides the borders). I am able to turn country

How to create multiple infowindow in google map api

家住魔仙堡 提交于 2019-12-31 10:23:09
问题 I create 3 markers in the map whose data comes from a json. but when I click on a marker and try to open the Info window only the last marker will response correctly.. please help me.... this the code.... <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script> <script src="http://google-maps-utility

Google Maps v3 - Map tile caching on client?

孤街浪徒 提交于 2019-12-31 09:44:49
问题 I'm using Google Maps JS API v3 for a project. Is there a way to ask the map to cache tiles on the client's machine so that when they refresh the browser, the tiles don't have to all download again? Many of my clients are on cellular connections where redownloading the map takes a considerable amount of time. Thanks! 回答1: By default google maps return's cached images (you can see this in the network tab of the console). If you user's having trouble caching the images, it's probably because

Google Maps v3 - Map tile caching on client?

。_饼干妹妹 提交于 2019-12-31 09:42:53
问题 I'm using Google Maps JS API v3 for a project. Is there a way to ask the map to cache tiles on the client's machine so that when they refresh the browser, the tiles don't have to all download again? Many of my clients are on cellular connections where redownloading the map takes a considerable amount of time. Thanks! 回答1: By default google maps return's cached images (you can see this in the network tab of the console). If you user's having trouble caching the images, it's probably because

How to get parcel or zipcode boundaries for display in map?

此生再无相见时 提交于 2019-12-31 09:07:12
问题 I want to add a boundary to a specified parcel of land so that it stands out in the map with a colored outline/border. In google maps, this is done using the polygon functionality if you know that path of coordinates to enter to surround the land parcel. However, I do not have the polygon path info, but I do have the both the geocode coordinates for the location and also the Assessor's Parcel Number (APN) for the parcel as well. I found this other SO post that talks a little about how to get

How to get parcel or zipcode boundaries for display in map?

牧云@^-^@ 提交于 2019-12-31 09:07:11
问题 I want to add a boundary to a specified parcel of land so that it stands out in the map with a colored outline/border. In google maps, this is done using the polygon functionality if you know that path of coordinates to enter to surround the land parcel. However, I do not have the polygon path info, but I do have the both the geocode coordinates for the location and also the Assessor's Parcel Number (APN) for the parcel as well. I found this other SO post that talks a little about how to get

Styling MarkerClusterer Icons?

…衆ロ難τιáo~ 提交于 2019-12-31 08:33:08
问题 I am using the MarkerCluster.js to create clustering in my google maps api. The clusters work how I want them however I want to style differently than yellow, blue and red circles. I was trying to use the MarkerStyleOptions and it says you have an array of styles with the smallest cluster icon first and the biggest last. I tried to create this below but I am getting really confused about what syntax to use and can't find any good examples. var clusterStyles = [ [opt_textColor: 'white'], [opt

Add marker to existing google map (without refresh google map) [duplicate]

筅森魡賤 提交于 2019-12-31 07:54:08
问题 This question already has answers here : Google maps api V3 - Adding multiple markers dynamically from query results (2 answers) Closed 4 years ago . I have a google map on my website (in production) with few markers, i would like to know if its possible to add a marker on an existing map without refresh my google map. This what i have: I load my webpage, google map appears with markers On click on a button, i would like to add one marker on my map (without refresh my page or the google map)

If there is a javascript error on the page, does google map not load?

為{幸葍}努か 提交于 2019-12-31 07:42:27
问题 I am using the Google Maps API. I get the Google Map by: $map = $this->ci->gis->draw_map_position_by_lat_long($this->ci->profile_data['LocLat'],$this->ci->profile_data['LocLong']); $this->ci->widgets['map']= $map; Function: public function draw_map_position_by_lat_long($lat = NULL , $long = NULL) { $load['center'] = $lat . ',' . $long; $load['map_height'] = "191px"; $this->ci->googlemaps->initialize($load); $i = 0; $marker = array(); $marker['position'] = $lat . ',' . $long; $marker[

How to indicate that a point is inside the circle or rectangle by geometry library in Google maps v3?

怎甘沉沦 提交于 2019-12-31 07:40:33
问题 Look at this: if(google.maps.geometry.poly.containsLocation(new google.maps.LatLng(arrayLatitude[counter1], arrayLongitude[counter1]), polygon)) { } This is the condition to indicates that a point is inside the polygon or no. I'm looking for something similar but for circle or rectangle. something like this: if(google.maps.geometry.circle.containsLocation(new google.maps.LatLng(arrayLatitude[counter1], arrayLongitude[counter1]), circle) { } Or for rectangle: if(google.maps.geometry.rectangle