'Clear search'},searchLayer: {buffer:256,collisionMargin:2,marker: {icon:'via',iconOptions: {primaryColor:'#ffffff',secondaryColor:'#333333',size:'lg'},popupEnabled:true},paddingTopLeft: [420,20],paddingBottomRight: [20,20],searchResponse: {},updateResultsOnMapMove:true}}).addTo(map)...
L.mapquest.textMarker([45,-120], {text:'Coffee Shop',subtext:'Iconic coffeehouse chain',position:'right',type:'marker',icon: {primaryColor:'#333333',secondaryColor:'#333333',size:'sm'}}).addTo(map); Parameters Request ParameterDescriptionRequired ...
addTo(map); Custom Style Example js let customDirectionsControl = L.mapquest.directionsControl({ routeSummary: { enabled: true, compactResults: true, }, narrativeControl: { enabled: true, compactResults: true, }, directionsLayer: { startMarker: { icon: 'circle', iconOptions: { size:...
Search Ahead Geocoding Control with Search Ahead Filtering Results for Search Ahead Traffic Map with Traffic Layers Map with Traffic Control Miscellaneous Adding Markers, Circles, and Polygons Adding a GeoJSON layer Adding a Tile Overlay Adding an Image Overlay Showing Marker C...
Syntax js L.mapquest.key='KEY';varmap=L.mapquest.map('map', {center: [34.0522,-118.2437],layers:L.mapquest.tileLayer('map'),zoom:12});map.addLayer(L.mapquest.trafficLayer()); Parameters Options Object An object containing a colors object, opacity, weight, minZoom and max...
L.tileLayer('http://maps.nypl.org/warper/maps/tile/31110/{z}/{x}/{y}.png').setOpacity(0.7).addTo(map); 17 }; 18 </script> 19 </head> 20 21 <bodystyle="border: 0; margin: 0;"> 22 <divid="map"style="width: 100%; height: 530px;"></div> ...
searchLayer.on('search_marker_clicked',function(eventResponse) {console.log(eventResponse);}); Visual Example Circle Search Example js L.mapquest.key='KEY';letmap=L.mapquest.map('circle-searchLayer-map', {center: [34.0522,-118.2437],layers:L.mapquest.tileLayer('map'),zoom:15});...
markerAn object containing any of the following key value options: icon, iconOptions, popupEnabled, and textEnabled. icon: A string that specifies the type of icon to be rendered. Default is 'marker'. iconOptions: An object containing any of the following key value options: primaryColor, sec...
Showing Marker Clusters Showing Clusters as a Heat Map PlaceSearch.js new APIs Data Manager API Directions API Geocoding API Icons API Search API Place Search API Search Ahead API Static Map API Traffic API Legacy Products Leaflet Plugins Tools Lat/Lng Finder Link to Map...
Showing Marker Clusters Showing Clusters as a Heat Map PlaceSearch.js new APIs Data Manager API Directions API Geocoding API Icons API Search API Place Search API Search Ahead API Static Map API Traffic API Legacy Products Leaflet Plugins Tools Lat/Lng Finder Link to Map...