New answers tagged

2

Step 1. sign up https://studio.mapbox.com/, then sign in. Step 2. desgin your own map style, change the Places componets language. Step 3. save the style, and get the style URL mapbox://styles/yourusername/randomstring, in fact, yourusername/randomstring is the ID(id). Step 4. use the id \ accessToken in https://api.mapbox.com/styles/v1/{id}/{z}/{x}/{y}@2x?...


0

It is caused by closure try this code in 'pointermove' event function var coordinate = event.coordinate; var latLng = ol.proj.transform(coordinate, 'EPSG:3857', 'EPSG:4326'); //simple text written in the popup content.innerHTML = '<b>My latitude is: </b>' + latLng[1] + '<br><b>My Longitude is: </b>' + latLng[0];


1

@happymappy, this is happening because of your CSS: div { line-height: 0; } Which is making the content of your popup not display. Change it to something more specific, for example: div#drop-downs { line-height: 0; }


0

I've been struggling with this too. What worked for me was doing the filtering on the s2SrWithCloudMask before you turn it into an imageCollection. I also made a filter function to map to the collection, so you can then filter by that. Code below. Keep everything you have, just add these bits in. This was converted from Python to JavaScript, there may be ...


0

You need to remove the map click listener from your added node. This should make sure a map click is not recorded when you click the html node you added. resume.onAdd = function(map) { this._div = L.DomUtil.create('div', 'resume'); this._div.innerHTML = title + '<br>' + description; # This is your missing row########################### L.DomEvent....


0

You need to indicate the map to show the labels. In order to do this just set Map property showLabels to true. In your code, map = new Map("map", { basemap: "satellite", center: [-46.807, 32.553], zoom: 3, showLabels: true // <- HERE });


1

You actually almost got it. The problem in your code is that you are using template2 in the feature layer flayer. In order to get the result you want, use template for flayer, const fLayer = new FeatureLayer({ portalItem: { id: "b5665da3feab4b6091914cbfe4ab028f" }, popupTemplate: template, // <- template for popup layerId: 0, ...


0

Edited version of the Places javascript code that finally did the trick <!--Javascript code taken from API https://community.algolia.com/places/examples.html#searching-in-a-country --> <script type="text/javascript"> (function () { var placesAutocomplete = places({ appId: "ID comes here", apiKey: "Key ...


0

The satellite is saved in the property system:index. You can acces it like this for a single image: var dataset = ee.ImageCollection('NOAA/DMSP-OLS/NIGHTTIME_LIGHTS') .select('stable_lights'); print(dataset.first().get("system:index")) If you only want Images from the satellite F14 you can use filterMetadata print(dataset....


0

It is the sum of decrease in Gini impurity index over all trees in the forest. From the comments in the code: /** * Variable importance. Every time a split of a node is made on variable * the (GINI, information gain, etc.) impurity criterion for the two * descendent nodes is less than the parent node. Adding up the decreases * for each individual ...


Top 50 recent answers are included