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

thanks for the suggestions. I have seen these and tried to adapt them for my grid layer. As far as I can tell, every example for selecting features involved creating the features first. I have not (yet) seen a working example where an existing layer is loaded and the user selects features from this layer. I am starting to think that selectFeature only works ...


0

probably you should try first multiple: hover. One way is that you try http://openlayers.org/dev/examples/select-feature.html, so copy this to your pc and delete what you don't need, just leave the create/select buttons and start testing, that's a very good to start learning both javascript and openlayers. Also, take a look at this


0

Not quite sure what your "onScreen" function is, but an example that should work is this: map.events.register("moveend", map, function(evt) { var extent = map.getExtent(); var output = []; for (var i = 0, l = myFeatures.features.length; i < l; i++) { var feature = myFeatures.features[i]; if ...


0

Here is the code I recently wrote to solve the popup and tooltip popup problem. It works ok for me exact some tooltip(anchored Popup remain on screen until map is refreshed). Hope this helps you. //Add a selector control to the vectorLayer with popup functions var controls = { highlightCtrl: new ...


3

The most basic difference is the level at which each of the functions are working. The Feature Class to Feature Class tool is working at the Layer level, meaning that regardless of the features selected, it treats them as a whole. A new feature class is going to be created. This means that you have control over the structure of the new featureclass, ...


6

The Feature Class to Feature Class tool is a Conversion tool. The idea is to convert a feature class in one format (e.g. shapefile) to another (e.g. geodatabase). It also allows the user to control the Field Map - i.e. which fields will be copied over. The Copy Features tool simply creates an exact copy of the input features. Note - this tool can also be ...


1

What you will need is a SelectFeature control. This will handle the highlighting and will give you a place to hook up your select/unselect event handlers. Add the following control: var selectControl = new OpenLayers.Control.SelectFeature( vectorLayer, { autoActivate: true, hover: false, multiple: false, clickout: ...


0

A Feature Class is a database table with geometries (points, lines or polygons). A Feature Layer is the rendering of a table of geometries, for display on computer screen, or map printout. Esri invented these terms to describe their database tables (with geometries) and the rendering of them on screen or map. "Spatially Enabling" those databases allows ...


0

You can use QgsGeometry.combine( QgsGeometry ) for that. Just loop over all your features and call geom = geom.combine( currentFeature.geometry() ) with geom being a QgsGeometry



Top 50 recent answers are included