Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mapcontrol]

in a mapping application a map control is a function that modifies the state or the behaviour of the map object

0
votes
0answers
16 views

Writing custom control for OpenLayers 4?

I have a single static chart (built with ChartJS; it's displayed on a canvas) and I would like to have it as a collapsible control button that could be toggled (just like the map overlay or ...
1
vote
1answer
25 views

How to remove the leaflet L.control.watermark from the map

I tried to add a picture to the map by using a button. This works well by using L.control.watermark. But I want to remove the picture at the next button click and I can´t find a working solution. ...
0
votes
1answer
546 views

How to show WFS in Leaflet control

I am trying to add the WFS layer to my map to make it clickable via L.control, unfortunately, I am not using this properly as when I click on the other layers in control, the popup feature is still ...
3
votes
3answers
631 views

Disable Leaflet WMS getFeatureInfo popup while using the Measure tool

I have a simple Leaflet map to which I've added two functionalities: measure tool using leaflet.measure plugin; WMS getFeatureInfo popup using the L.TileLayer.BetterWMS plugin; The default map ...
0
votes
0answers
26 views

Reducing Map Control Memory Usage

I have a feature layer with approximately 20 MB renderer. When I load it to my Axmapcontrol, the RAM usage outgrows to about 1 GB which is not acceptable for my application. How can I handle this? Any ...
1
vote
1answer
77 views

How to get next/previous layer in leaflet?

I want to create buttons to get next/previous layer but i don't know how to build code to make it possible. var bounds = [[0,0], [2048,2048]]; var floor0 = L.imageOverlay('img/Floor-00-map.png', ...
1
vote
1answer
2k views

Layer selection in Openlayers 3

I'm trying to develop a robust way to generate a UI incorporating map layer controls such as a base layer selector. I've read several posts including this recent one but I'm still not able to change ...
0
votes
2answers
3k views

Bootstrap navbar and leaflet zoom controls

I'm using the THE MAP GUY(DE) Bootstrap template and applying it to leaflet using the code below. The issue I'm having is that the zoom-control doesn't toggle right on page load. It will only after ...
2
votes
1answer
1k views

External layer switcher and layer order

So I'm using an external layer switcher because I need it imbedded in a bootstrap dropdown menu. It works really great except for one thing.... when I change between viewing my base layers, the ...
12
votes
4answers
16k views

Missing LayerSwitcher in OpenLayers3?

I was wondering if there is a LayerSwitcher control in OpenLayers 3? I read that ol3 is a complete rewrite. But I can't seem to find the equivalent of LayerSwitcher from http://openlayers.org/en/...
4
votes
1answer
1k views

OpenLayers Full Screen control not working [closed]

I have a problem with OpenLayers controls. I have two controls which are perfectly working, var mousePositionControl = new ol.control.MousePosition({ coordinateFormat: ol.coordinate....
1
vote
2answers
627 views

How to remove custom controls?

I am trying to remove custom draw controls from my OpenLayers application which I create like this: var drawControls = { polygon: new OpenLayers.Control.DrawFeature(polygonLayerFreehand, ...
3
votes
2answers
4k views

openlayers - export map to canvas problem

I am trying to make a export control to export the map as image file. I found this example: http://dev.openlayers.org/sandbox/camptocamp/canvas/openlayers/examples/exportMapCanvas.html so i added the ...
1
vote
0answers
277 views

Openlayers OverviewMap control with vector layer data display

I am creating an OverviewMap control in the map and want to see the content of a Vector layer in the overview map too. var mapOverviewOptions = { mapOptions: { ...
0
votes
2answers
519 views

Geoserver REST api control

Recently I am using Geoserver grammatically through its REST api. When I request for a map it gives me a map image. My request code is like this: public string GetMap(string name) { ...
2
votes
1answer
2k views

Display a control (zoom bar) outside map container in Leaflet?

I need to extend a zoom control so that it is functional outside of the leaflet map container. Can this be done? Essentially,the same idea as what is accomplished with this item here but under the ...
-1
votes
1answer
641 views

ArcGIS Engine--load mxd file to map control or pagelayout control?

When I load an MXD file using ArcGIS engine, how do you automatically detect whether it's saved in mapcontrol or pagelayout control?
1
vote
1answer
120 views

How to reset the length of the control of scaleLine in OpenLayers?

I want to change the style of the control of the ScaleLine,but I have no idea where to change it,anybody can give me some advice? map.addControl(new OpenLayers.Control.ScaleLine());
1
vote
0answers
865 views

Add layers from WMSCapabilitiesStore to MapPanel and select polygons

I created a store and added layers to a grid Panel, when you click add layer to map it works fine, the problem is that when I call the function controle(layer) I can't select polygons in the layer ...
0
votes
1answer
475 views

How to zoom in/out selected elements of MapControl?

I have a mapcontrol that includes many elements: text, line. I used this code to add elements into mapcontrol: pGraphicsContainer.AddElement(pElement, 0); I can use zoom button to zoom in/out the ...
0
votes
1answer
414 views

Can't load Mxd file in MapControl?

I used below codes to save IMap into byte[] (to store in my database), but I can't load it again, are there anyone know what's wrong ? public byte[] SaveMap(AxPageLayoutControl pageLayOut) { ...
0
votes
1answer
288 views

Using ESRI.ArcGIS.Display.ITemplate to draw cutom lines?

I am using ESRI.ArcGIS.Display.ITemplate to draw custom lines such as dot/dash lines on a map control. Then, I used below codes ESRI.ArcGIS.Display.ITemplate templateCls = new ESRI.ArcGIS.Display....
2
votes
0answers
169 views

Cannot reselect polygon after modify

I've got various vector layers on a OL map. On one layer I have a few draw controls. If I draw a polygon I can select it (the whole pop-up thing works). This also works for all the other features. ...
2
votes
2answers
6k views

How to deal Leaflet map control checkboxes?

I add some geojson layers to the map control once a layer is loaded and the control can show all the layer names. But I notice that all the checkboxes are unchecked by default. So that once I click ...
0
votes
2answers
1k views

Using InfoWindow with Feature Layer and DialogWindowBase?

I need to have an infoWindow that displays the Outfields of a FeatureLayer. The infoWindow is popping up, but it is popping up no matter where you click on the map and it does not contain any of the ...
2
votes
1answer
408 views

Openlayers - Loop through control collection

Is there a way to loop through the collection of map controls that have been added to an OpenLayers map?
2
votes
1answer
714 views

How can I enable panning using Openlayers and a vector overlay with controls?

I am creating a map using the following code: map = new OpenLayers.Map({ div: "map" }); Then I load in a geojson polygon layer and add two controls var highlightCtrl = new OpenLayers.Control....
2
votes
1answer
2k views

Openlayers error after removing selectFeature control

I am using a selectFeature control for a point layer in OpenLayers 2.12. I have a problem after removing the selectFeature control from the map. The reason why I want to remove the control is because ...
1
vote
0answers
340 views

Zooming MapControl (Arcgis) doesn't effect?

I am trying to use the Zoom commands (Zoom In, zoom out) for a MapControl. But it doesn't make "Text elements" bigger (larger) or smaller. Please see my image. I used the below function to add a text ...
3
votes
1answer
1k views

toggle clustering with map controls

I've made a map with openlayers and have the vector features clustered with a clustering strategy. Now I want my users to be able to toggle this behaviour with a control similar to the layerswitcher. ...
0
votes
1answer
331 views

Life cycle of an AxControls - license missing in some point of the execution

DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far… Does anyone know the lifecycle of an AxControl (AxTOCControl)? I have a complex application, that uses several technologies (Spring....
3
votes
2answers
2k views

ArcGIS 10 MapControls in MS Access, can it be done?

In the past (9.3 ArcGIS) I was able to develop forms in MS Access where I could drop a MapControl on and have GIS functionality all within Access as long as ArcMap was installed on the same machine. ...