The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
1answer
16 views

spatial query using GeoExt and openlayers

I want to allow the the User to make advanced custom queries against a layer.So he can search by name or another attribute and get zoomed to the requested feature ( hospital in my case) . I m ...
-2
votes
0answers
19 views

i can not publish my openlayers map, and i dont know why [duplicate]

here is a script that i wrote through openlayers to publish my map but my problem is that others can not see it also i cant integrate it to any webpage. any help?? <html> <head> ...
-4
votes
0answers
32 views

how to publish my own openlayers map to be readable by others?

i created through Openlayers a Map but the problem that only me, using my computer, can see the results i cant open it in any other computer. i'm using localhost 8080 and i think that this is the ...
0
votes
0answers
8 views

Opengeo suite 4.6, gxp template, problem in adding print tool

I have checked this question here but it one of the link is missing and it was on suite 3.0 and i have no idea if it will work on suite 4.6.I have installed the print extension in opengeosuite then ...
0
votes
1answer
33 views

How to load layers faster? [on hold]

I'm using Openlayers 2.13 and Geoserver 2.5.2. I need some suggestion to optimize loading layers. On Geoserver, I have stored about 270 layers. One of html pages calls up to 40 layers, and speed is ...
0
votes
2answers
22 views

OpenLayers3: How to draw line with beetwen two points

I've following code: var source = new ol.source.Vector(); var vector = new ol.layer.Vector({ source: source style: new ol.style.Style({ stroke: new ol.style.Stroke({ color: "#ffcc33", ...
0
votes
0answers
8 views

POIs Gauss Boaga text vector

How can I modify this script to read from a text file values Gauss Boaga? var map; var lon =9.10; var lat =45.46; var zoom =10; function ...
0
votes
0answers
10 views

Two layers have different zoom level

I have added to my OpenLayers-based app two layers. A google maps layer and another WMS layer. physical = new OpenLayers.Layer.Google( "Physical View", {type: ...
0
votes
0answers
8 views

GetFeature Pop-up appear on all layers independent if the are selected or not!

I do have an issue with getFeatureInfo. It works on all layers independent of their selection or not. I used the following code to getFeatureInfo from a layer. function myGetFeature(map,mylayer) { ...
0
votes
1answer
9 views

zoomToExtend openlayes 2.13.1 issue

my layers are in wgs84 and I need to zoomToExtend to specific Bound's but it seems I can not make it.... The code seems ok but nothing happens. map = new OpenLayers.Map({ div: "map", ...
0
votes
0answers
8 views

WFS GetFeature query where typeName is a Layer Group not a Layer

I am loading layers in openlayers, and dynamically building a a protocol for "identifying" elements in that layer when the user clicks the map, and that layer was the selected "Identify" layer. This ...
0
votes
0answers
14 views

base layer on openlayers 2.13 not showing Google if set first choice

I am working a ol 2.13.1 & i have a strange issue. As base maps I have OSM & Google. When I set as default Google it doesn't shows nothing. Only the OSM layer appears when selected. BUT if ...
0
votes
0answers
6 views

Can i change the width of a geoserver WMS layer through openlayers?

I have a layer in geoserver with an SLD style, which I display in a map web app using OpenLayers2. I want to know if there is a way to change part of the style (the width of the line geometry) through ...
0
votes
1answer
13 views

openlayers hide layer function

I need to hide a layer with a function, use this script: function hideLayer(layerName) { layerName.setVisibility(false); } I have this error: 'map' is null or undefined my code page var ...
1
vote
0answers
26 views

How to make symbolizers use attribute values in OpenLayers.Layer.WMS?

I know it works like a charm for vector layers. But considering that we can make the symbolizers use attribute values in the SLD, I think OpenLayers should support it. But apparently it doesn't. In ...
0
votes
0answers
9 views

Single WMS from single mapfile with several rasters in MapServer

I have several rasters in a single mapfile, I put them as layers like here: LAYER NAME "Layer 1" GROUP "All Layers" TYPE RASTER STATUS ON ...
0
votes
0answers
37 views

Adding controls and fuctionalities to the map

Can someone please help me how to do this tool bar. I've been trying to do it on my own but as a beginner, I'm failing. Attached is the picture of what I need you guys to help me do. Thanks! Below ...
0
votes
2answers
52 views

How to check for geometry intersection (point in polygon) using OpenLayers3?

For example, I have this vector (It will be a more complicate linestring, not just a rectangle). For a given coordinate (without clicks, just a latitude, longitude), how could I know (in an easy way, ...
0
votes
0answers
29 views

How to make OpenLayers.Control.DragPan persist?

I want to use controls like DrawFeature and SelectFeature, but while these controls are active, I want to have a way to drag the map, using DragPan control. For example, I am selecting features. I ...
1
vote
1answer
23 views

OpenLayers 3 how can I get the current center of the view?

I would like the get the center (coordinates) of the current view. I need it for the geoserver print modul. I've found the following code: var center= ol.extent.getCenter({}); But it unfortunately ...
0
votes
1answer
18 views

How to draw route from OSRM on right road using OpenLayers?

Asking to OSRM for a route, OSRM is returning the geometry: "route_geometry":"ity_rArqlxIvTv|AoCrY" After decode them, I'm getting 3 GPS coordinates: 43.529557, -5.659434 ...
1
vote
1answer
47 views

Google Maps base map definition

I need to replace a 'Global Imagery' basemap in Google Maps. However if I replace it with "Openlayers.Layer.Google", that would use map projection of EPSG:3857 (900913). But I'm working with EPSG: ...
1
vote
1answer
13 views

Projection bug between overlay and base layers

I am making a WebGIS application for a course and I am trying to integrate some nice base layers like OMS, Stamen, and Bing Maps with my overlay layers that are for Bolivia from a Bolivian map ...
0
votes
4answers
51 views

OpenLayers Definition in GeoExplorer/GeoExt

I'd like to know how to define 'Open Street Map' as basemap in the function GeoExplorer.js The createLayout function is defined as : createLayout:function(){ this.map=new OpenLayers.Map({ ...
0
votes
0answers
28 views

Can I style basemaps provided by OpenLayers in QGIS?

I absolutely love openlayers plugin, and it's been great help. It'd be greater if I can style the base maps such as disabling labels, changing opacity etc, which are all possible when working with ...
0
votes
1answer
48 views

Database queries using GeoServer? [closed]

I am new to GeoServer. I have a PostGIS database and GeoServer setup. How can I query the database using the GeoServer/ Boundless SDK? I have OpenGeo Suite 4.6 and I am trying to query the database ...
0
votes
0answers
22 views

Refresh map after updating chart elements

I need to refresh an openlayers map after updating the size of pie charts in a mapfile displayed on the map (on button click). I cannot refresh the whole page or I lose the data. It works when I ...
0
votes
0answers
22 views

Integrate tools on the toolbar

attached is my code without tools. I need to add more tools to it but I get errors, can somebody please help me how to do it.The tools code is attached after the first one. Thanks! My code is as ...
0
votes
1answer
51 views

How to set up wfs-t service in Geoserver using openlayers from postgis data?

I published my postgis data layers into Geoserver. I have enabled wfs in the edit workspace > services. Still the "layer preview" does not show any options under wfs. See the image. How can we set up ...
0
votes
2answers
35 views

Pink Tiled Map with Openlayers and Geoserver

I'm having a problem with the pink tiles when trying to display a map. I'm using Geoserver 2.6 . In the main html page , I reference to Openlayers with : This is how I define my layer : new ...
0
votes
0answers
18 views

Font family property does not work in the SLD_BODY of OpenLayers Layer WMS

The font family property does not seems to work in WMS layer, from OpenLayers. I have checked the SLD Body and everything seems fine. I have a CodePen here for some trials STYLE /** * Filter, ...
0
votes
0answers
37 views

How to display tracks on a layer with lat and long in Openlayers

I want to show a track on my map. I tried the below code but the problem is I don't want to load the track points in the layer from the GPX File (because I don't want to generate a file from ...
1
vote
1answer
51 views

Geoserver / Openlayers : Front-End interface

I am using Geoserver as cartographic server . I'd like to make a client side interface using Openlayers,Ext,Geoext . That can select by attributs the layers published on Geoserver as WMS , and ...
0
votes
0answers
9 views

Difference between these 2 openlayers doc pages?

http://dev.openlayers.org/apidocs/files/OpenLayers/Popup-js.html vs http://dev.openlayers.org/docs/files/OpenLayers/Popup-js.html how come the difference ? at what point do you get access to one or ...
0
votes
0answers
6 views

OpenLayers switch feature to style from StyleMap

I start with a feature via: boundary=tindale_mysql.getFeaturesByAttribute('name', val); Then I want to set it to one of its define styles ('select2') from its stylemap: var myStyleMap=new ...
1
vote
1answer
123 views

Google bathymetry service with OpenLayers Mouse Position

After searching for some days I decided to post this question here, hope someone else can give me some hints about a doubt I have. The thing is that I would like to use the Google Bathymetry Service ...
0
votes
0answers
8 views

Populate array of listbox using multiple columns

Can someone tell how to populate array to be displayed in listbox using multiple columns in a table. Or can anyone tell how to copy several columns data into one column in mapbasic?
0
votes
0answers
40 views

Efficient way to read large GeoJSON data using Openlayers API

For now this is how I read GeoJSON data: $.ajax({ url: "flood_map/", type: "GET", dataType: "json", async: !0, beforeSend: function () { ...
0
votes
0answers
20 views

Openlayers 3 - Redraw/Update a Control

It it possible to redraw, update, or change the HTML of an openlayers control when an event is fired? As far as I can tell, the HTML for a custom control is set by calling goog.base(this, { element: ...
0
votes
0answers
14 views

Visualizing map on GeoNode?

I'm making a GIS project with GeoNode. The idea is that I create one map and all the layers I add could be shown or make queries on them. An example of what I'm trying to do is this link ...
0
votes
2answers
23 views

OpenLayers.Control.LayerSwitcher - how can I select/unselect a layer even if not available at current zoom

I love the layerswitcher feature in OpenLayers v2 (not using v3 right now). It's great to add to the map with one line of code! I just have one thing I'd like to change, and I'm not sure how. ...
1
vote
1answer
24 views

How save modified features in server side with java and geotools?

I'm developing a gis Application with java. I use Spring 4.0.1 and GeoTools-13-RC1 in server side and OpenLayers 2.13.1 in client side. In client side, I have a wfs layer and it is as follow: var ...
1
vote
0answers
50 views

OpenLayers in android 4.4.2 webview

I want display an openlayers map with a kml in android webview. I implement this example. This work on android 4.1 but not in 4.4.2. Here is my code: private WebView webview; webview = ...
1
vote
0answers
16 views

Offline Base Layer using stored KML or GEOJSON file

Using OpenLayers 2, I want to have an offline baselayer, that is loaded from a KML or GEOJSON file. I am successfully able to do this if I first load a baselayer from google maps. For example, this ...
0
votes
0answers
51 views

How send wfs transaction data on json format in Openlayers?

I use a wfs layer in my project with openlayers as follows: var saveStrategy = new OpenLayers.Strategy.Save(); me.point = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new ...
0
votes
0answers
31 views

How to set extent and zoom level based on extent in openlayers?

I had a problem to set the extent and the zoomlevel in openlayers using GeoExt2. My problem is how do I know extent: [minx,miny,maxx,maxy] the minx,miny,max,maxy in openlayers ? So, I can set the ...
1
vote
0answers
45 views

Using WMS layer transparency with Geoserver, Openlayers and Drupal?

I am using OpenLayers in Drupal to display Geoserver WMS data. I can get the layer to overly properly, however the raster layer (png) has a white background I cannot remove. I have created a style in ...
1
vote
1answer
23 views

ExportMap in OpenLayers not finding canvas property in layers

I am trying to follow this example to export map to canvas: http://dev.openlayers.org/sandbox/camptocamp/canvas/openlayers/examples/exportMapCanvas.html But, it is failing at this line ...
0
votes
1answer
13 views

Openlayers cluster stragegy total count

How can I get total feature count of vector layer: var mylayer = new OpenLayers.Layer.Vector(null, { "protocol": myWFSProtocol, "styleMap": style, "strategies": [ ...
0
votes
1answer
12 views

Make OpenLayers filter initially empty

I have an openlayers vector layer that loads data form service. But it loads all data initially. var mylayer = new OpenLayers.Layer.Vector(null, { "protocol": myWFSProtocol, ...