Tag Info

Hot answers tagged

3

I think you need to use IdentityManager from the API that allows you to sign in with your arcgis.com account and then receive access to the data. Whatever users from your organization that have accounts can sign in as well. https://developers.arcgis.com/javascript/jsapi/identitymanager-amd.html And here is a sample that shows what I think you are trying to ...


3

You could – along the lines of map.on('zoomend' … insert a conditional statement into layer.on('click' … querying map.getZoom(): layer.on('click', function() { if(map.getZoom() < 10) { map.fitBounds(layer.getBounds()) } });


2

They are not bad coordinates. They are in Web Mercator (EPSG: 3857 aka 900913 - units meters). This is the default projection for Openlayers. These coordinates are perfectly normal but what you mean is "how can I get coordinates in decimal degrees projected to EPSG: 4326" (which is what you were expecting). To do that, see this example where you can see ...


2

you're in luck. the beta version of the 4.0 ArcGIS API for JavaScript includes 3D support and was released on July 16th. https://developers.arcgis.com/javascript/beta/


1

I figured this out; the parameters are needed which reference the URL. var NASAGIBS_ViirsEarthAtNight2012 = L.tileLayer('http://map1.vis.earthdata.nasa.gov/wmts-webmerc/VIIRS_CityLights_2012/default/{time}/{tilematrixset}{maxZoom}/{z}/{y}/{x}.{format}', { attribution: 'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated ...


1

According to the Leaflet documentation, the layer config is an object literal with layer names as keys and layer objects as values. That means you can use [] to set the object key, here is the modified codes: var layerName = feature.properties.condition[0]; //layer control var baseMaps = { "OpenStreetMap": OSM, "Aerial Imagery": ...


1

I would recommend looking into Cesium: http://cesiumjs.org/ I have been using it for quite a while and found it to be a great 3D solution. It is open source and provides for additional things like 3D terrain, vector graphics, billboards and 3D models.


1

If you use the default ol map, your map use probably the EPSG:3857 but your wms doesn't allow this CRS (see <CRS>tags in your GetCapabiltities). Allow this projection in the layer's definition of your WMS server config and it will work.


1

If you do (or want to) use the Leaflet 1.0 Beta version, Marker and Path have an interactive option. If false, the marker will not emit mouse events and will act as a part of the underlying map. (from leaflet beta API)


1

When you have a layer that also listens for click then it will pick up the top most layer's event. Check out this fiddle. You can add the shape click handler and see that it picks that up instead of the map's.


1

There are no problems with the coordinates included in your code. The problem is with, how you included them. The coordinate transformation goes smoothly as far as I can see, but I changed your iteration technique to my own, because for me, the one included in your Fiddle was a bit strange (I hope that won't lead to a confusion). The first problem was with ...


1

I've been stuck on an issue quite similar to yours by having a custom control with a scrollable div inside. At least a partial solution can be achieved by using lines like this: var elem = L.DomUtil.get('yourelementid'); L.DomEvent.on(elem, 'mousewheel', L.DomEvent.stopPropagation); where elem is the element that's laid out over the map. This prevents ...


1

This is because losing focus on the map inside winform. You can use yourBrowserControl.Document.Focus() to re-focus on the map after any of your c# actions and you will get your mouse wheel control back. In my case, I used splitContainer to split the screen and I used the following code which works out great. Every time when I click on the map, it will ...


1

I had the same problem and i tried to solve it with the answers above but it did not work for me. What actually worked is this var polygonLayer = new OpenLayers.Layer.Vector("Polygon"); var polygon = new OpenLayers.Control.DrawFeature(polygonLayer, OpenLayers.Handler.Polygon); map.addControl(polygon); polygon.handler.callbacks.point = function(point){ ...



Only top voted, non community-wiki answers of a minimum length are eligible