Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
removes points of interest from Google base map
Browse files Browse the repository at this point in the history
  • Loading branch information
derekeder committed Mar 5, 2018
1 parent 59f1e30 commit ba3551d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion js/maps_lib.js
Expand Up @@ -44,11 +44,23 @@

this.currentPinpoint = null;
$("#result_count").html("");

// disable Google's points of interest markers in the basemap
var basemapStyles =[
{
featureType: "poi",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
}
];

this.myOptions = {
zoom: this.defaultZoom,
center: this.map_centroid,
mapTypeId: google.maps.MapTypeId.ROADMAP
mapTypeId: google.maps.MapTypeId.ROADMAP,
styles: basemapStyles
};
this.geocoder = new google.maps.Geocoder();
this.map = new google.maps.Map($("#map_canvas")[0], this.myOptions);
Expand Down

0 comments on commit ba3551d

Please sign in to comment.