Tag Info

New answers tagged

0

here's a screenshot of what's hapenin, i load feature of the attribute "Indice" with OpenLayers.Protocol.HTTP, but in my database i have a lot of records that have the same feature "indice" like '20' (as in the picture) so i want to load all the feature corresponding to my attribute "indice" without repitition.


0

Some controls in OpenLayers are used to interact with objects in the map. These controls need to be activated. You can have only one such active control at one time. To activate the Draw Feature control in your code, your function should be: function Prueba(){ var vector = new OpenLayers.Layer.Vector("Lineas"); map.addLayer(vector); var line= ...


0

Here is a link which may help you.


0

Well, hook a read on data of second grid when data become available at first grid. This is basically an event binding problem. If you already added the features to each layer, you can walk the feature list by requesting the layers features array. Assuming you have a vector layer. (OpenLayers.Layer.Vector).features //first layer ...


0

I also have tables like that, I used UNION and one protocol, works perfectly for me. I'm not sure if two protocols can be used because you need to specify one at a time as far as I know. However what you can do is to add a combobox as part of the formpanel and there assign this to each option one cal with the corresponding protocol, it seems a bit hard to do ...


0

I'm not sure you can use both protocols at the same time, first use one and see if it works, if so the problem would be that you're trying to gather features from two protocols at the same time. Also you're missing "new" in the protocols, before the OpenLayers.Protocol.WFS. If you're working with a database as backend, eg postgresql/postgis with different ...


2

It can't work because you have : Ext 4.2.0 Openlayers 2.12 GeoExt 1.1 and if you carefully read http://geoext.org/tutorials/quickstart.html#getting-geoext you have Download the latest Ext 3.x from the ExtJS website Furthermore, read http://blog.opengeo.org/tag/extjs4/ to confirm


4

Please check timeline plugin on GitHub. I am sure it will help you. It contains simple library to create a time related map with Open Layers. It supports cluster strategy (Open Layers.Strategy.Cluster) and time filtering. Currently it supports source data in GeoJSON or GeoRSS format.


0

To answer just one part of the question, specifically I think I have a good idea how I could write a where clause for a spatial SQL query such this, but it's not at all clear where I'm submitting this type of query from my Javascript web client. Some PHP examples I've found seem to suggest that a server side process will have to submit the SQL ...


0

When you are getting data from your Mapserver via a WMS request, the labels are not separate. They are present in the image itself. Mapserver will put them in the WMS Map Image, based on settings in the map file. What needs to be done, is that you have to ask Mapserver not to put in the Labels in the output image. This can be done by using the correct ...


2

You need to listen to the featureadded event of the vector layer, and then get the geometry there. Have a look at the following JavaScript code: var map; function init(){ map = new OpenLayers.Map('map'); var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'}); var ...


1

There may be an easier way of going about this - but the only way I have found to label vector layers in a GeoExt LegendPanel is to give them a style rule with a name. So for styles that dont require rules, i just add one elseFilter rule (so it will always match) and put the name of the layer / feature in its rule oject: new OpenLayers.Style( { ...


0

Well, I didn't get any answer from you but in the mean time I found solution by myself so I will write it here just if someone come to the same problem one time. So, I solved it by adding this part of code var selectControl = new OpenLayers.Control.SelectFeature([layer1,layer2, layer3, layer4, layer5], { hover: false, clickout: ...



Top 50 recent answers are included