Tag Info

New answers tagged

0

I've solved!! Here you're the code that works! package myTestProjects; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxProfile; import ...


0

WAB works only with web maps (as default), so you cannot consume AGS services directly - good to know. So you would need AGOL organizational account to access the WAB and deploy your apps. Do you have one? You would need to share all your services you plan to access via AGOL (embed them into web maps, in other words). It is possible to consume AGS services ...


0

The lat/lon-Values 7486473 / 4193332 are pretty sure EPSG 3857 values which you need if you want to display your data on top of 3rd-party Background-Layers like Google or OSM. Your other values 55.7500 / 37.6167 are in EPSG 4326. so they need to be reprojected to get their EPSG3857-Values. You can transform them as @Joys mentioned or copy them from the map ...


0

Images are accessed externally, therefore one has to create their own storage locally with picture so that they can be easily accessed.


0

you can use something like this: var newlonLat = new OpenLayers.LonLat(lon, lat).transform(map.getProjectionObject() , new OpenLayers.Projection("EPSG:4326")); .transform( From projection, To projection) But first you need to know what projection you want, in the example is EPSG:4326 References: Openlayers DOC Kind regards!


0

You have the right idea. Geo-reference the image first, this can be done with the QGIS geo-referenceing tool, you will need some background mapping for reference. Publish the image with a WMS through GeoServer. Just install geoserver locally and create a datastore on a local drive. Create a simple webmap with OpenLayers and view WMS from GeoServer. It ...


1

Transform your center point, use the internal and external Projection as cgarillo mentioned and then also define the Projection of your vectorLayer and your map: var center_coord = new OpenLayers.LonLat(lon, lat).transform("EPSG:4326", "EPSG:3857"); map.setCenter(center_coord, zoom); ... var geojsonLayer = new OpenLayers.Layer.Vector("GeoJSON", { ...


2

Yes, it's a projection issue. OpenLayers defaults to geographic coordinates (lat/lon) so a simple "show me the thing" with it will paint it in geographics. GeoJSON.io wants to overlay things on top of web-mercator maps, so it reprojects your data into mercator, which stretches things out at the poles, just as you are seeing.


1

In QGIS you can open the Project Properties dialog and there you will find a tab called relations, where you can have a one-to-many relationship between a spatial feature and several rows. Have a look at this blog post, it describes how to use the feature: http://fulcrumapp.com/blog/using-relations-in-qgis/


1

Gery, I am in a similar situation. I donĀ“t need to hide or show the different rasters separately. If that's OK for you, this is what I did: As far as I know, in the mapfile - Layer - Data you can only specify one file, but you can create several identical layers with the very same name, each one of them pointing to a different raster. Loading this WMS ...


0

You could try to check if the Layer is loaded the first time: var first_time=true; var HSlay06 = new OpenLayers.Layer.MapServer('Human Settlement 2006', "http://localhost/cgi-bin/mapserv?map=/var/www/html/mapfile/Human_Settlement2006.map", { map: "/var/www/html/mapfile/Huma_Settlement2006.map" }, ...


1

The map.layers.length only gives you the array size of the layers with the map but not the zindexes of those layers as specific ranges are used depending on what is being displayed. So, one possibility would be to add the vector layer, get its zindex, get the WMS zindex, and see if swapping the two would work for you, i.e. var vectorindex = ...


0

You have to add a getFeatureInfo-Control: http://dev.openlayers.org/examples/getfeatureinfo-control.html Here's a question about how to add images in the GetfeatureInfo-Response How to Add image and hyperlink along with GetFeatureInfo Popup? How to Add image and hyperlink along with GetFeatureInfo Popup? Some more information about Geoserver's ...


1

I guess that your "workspace:layername" combination does not exist. If you open the OpenLayers Preview in Geoserver you will see the layername as a part of the URL like in this example "nurc:ArcSample": ...


0

Unfortunately using Bing via the OpenLayersPlugin does not supply any meaningful metadata such as acquisition dates. May I refer you to the following thread: https://social.msdn.microsoft.com/Forums/onedrive/en-US/ce592d5b-a14f-4476-b4c5-d9f6ed44c4ad/date-or-acquisition-of-images-in-bing-satellite-images?forum=vemapcontroldev


0

did you already add and activate a SelectControl? var selectControl = new OpenLayers.Control.SelectFeature(vmarkers, {}); map.addControl(selectControl); selectControl.activate(); http://jsfiddle.net/expedio/kop5qonq/ Apart from that you have one curly bracket too much between your two eventListeners.


0

I modified the code in this as per told in previous answer but it is still giving me error of "Unexpected identifier". MapServer Simple Viewer </head> <body> <div style="width:800; height:800" id="map"></div> <script defer="defer" type="text/javascript"> var perimetro = new ol.layer.Image({ source: new ...


1

I just solved it by reinstalling QGIS i.e sudo apt-get autoremove qgis and rm -rf ~/.qgis2/ and sudo apt-get autoclean. Then I reinstalled it by sudo apt-get install qgis. And then install the OpenLayers plugin. Now I have the Web menu.


1

You should use getLonLatFromPixel instead of getLonLatFromLayerPx. Unfortunately the latter method is not documented at all (see here) so I'll leave it to you to investigate where they differ. You can easily verify this by going to http://openlayers.org/two/ and pasting the following code in your JS console: map.events.register("mousemove", map, ...


0

You just added variables breaking the normal OpenLayers 3 behaviour and also made a mistake about extent position Remove mode : 'map', CRS : 'EPSG:3857', Move extent: [8046840.710000,3906011.335000,8217827.220000,4076997.845000] from ol.source.ImageWMS to ol.layer.Image options block


0

If you want to display 3d data. You should take a look at the cesium / ol3 plugin :here You can use the default terrain provided by Cesium. Or you can use geoserver to use your own with plugin



Top 50 recent answers are included