4
votes
1answer
563 views

how to get a button in an Openlayers popup?

I am trying to put a button inside of an Openlayers popup. While the button appears to display correctly with the following code, the function 'handlerFunc' does not execute when the button is ...
3
votes
1answer
4k views

unresponsive onclick event in OpenLayer.Popup.FramedCloud

I'm using OpenLayer.Popup.FramedCloud from OpenLayer (JavaScript Mapping Library). in the popup constructor there is a parameter called contentHTML. I put there html button with onlick event: ...
2
votes
1answer
1k views

Openlayer: remove multiple popups

I am trying to create a spatial survey using OpenLayers 2.11, but have some issues with a function for closing multiple popups. The following code works fine for one popup, but the function fails to ...
2
votes
1answer
369 views

Display POIs using OpenLayers without a text file

I need to display markers with information on a slippy map using OpenLayers. An example of what I'm attempting to do can be seen here:http://wiki.openstreetmap.org/wiki/Openlayers_POI_layer_example ...
2
votes
1answer
2k views

how to remove a specific marker in openlayer

This is the new code with the update from capdragon, but now it would not create markers. I don't know how to fix this now. I think the code snippet was a really smart way to fix my previous problem ...
2
votes
1answer
399 views

Missing IMG src leading to multiple unknown server requests

Hey my application has a map that is drawn with custom marker images rendered on OpenLayers VectorLayer. The problem here is that I see a lot of requests to the page that has this map and this comes ...
1
vote
3answers
572 views

In OpenLayers, Getting 1 Layer to stay over the other. (Z-Axis)

I have this map, which I show some red markers over and whenever a location is chosen from a list the current marker is painted blue and the map centers around it. I achieve this by having 2 layers - ...
1
vote
0answers
23 views

How to fit exactly openlayers map into a custom div tag?

I am new to web mapping and trying some code to include an openlayers map into a div including openlayers code from php. It will show divs but the map goes down the map. What shall be done to correct ...
1
vote
0answers
96 views

How can I add custom markup to a generic OpenLayers Control?

I am using a custom OpenLayers control to change the style of the icon on a feature. It looks something like this: StyleFeature = OpenLayers.Class(OpenLayers.Control, { layer = null, style = ...
1
vote
0answers
1k views

Openlayers : On right click how to remove a single vector

I'm new to openlayers and I've created a map, It includes markers are created by using vectors, and I want to remove a selected vector feature(a marker) on right click. I've done this by using ...
1
vote
0answers
84 views

openlayers additive opacity does not render equally

I recently integrated the scriptaculous slider with a few similar layers to acheive a 'tween' effect between the layers. As the slider is dragged, the layers opacity is altered. There are never more ...
1
vote
0answers
481 views

OpenLayers popup not toggling

When I create a static marker and attach a static popup, things seem to work fine. I am trying to build dynamic markers, and while the marker's and popup's are being created correctly, they are no ...
0
votes
1answer
91 views

OpenLayers is not adding marker to my map

I have an OpenLayers map and I create it using a JavaScript function. I then have a button which when pressed calls another JavaScript function which has code to add a marker to the map. For some ...
0
votes
2answers
297 views

OpenLayers now working with Doctype declaration

I have the follwoing code generated from netbean and some modification from this link. The code works well after removing while it doesn't with it. What might be the issue? <!DOCTYPE html> ...
0
votes
1answer
682 views

Create map from PNG like Google Maps

We need to create a map of the small town from raster file. Our client deny usage of known API such as Google Maps, OSM, etc. There is little time before the deadline. What is the quickest way to ...

1 2
15 30 50 per page