This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to display popup when selecting PinPoint?

1

Hi,

I am able to render the maps using the OpenStreetmaps API and also able to pinpoint the locations based on the latitude and longitude coordinates and When user clicks on the Pin,I want to display the Popup and display some information inside this popup,

Can anyone guide me how can I acheive this?Thanks a lot for your help

asked 04 Nov '11, 15:00

VenuGopal's gravatar image

VenuGopal
16899
accept rate: 0%


2 Answers:

2

You should take a look at the examples at OpenLayers.

answered 04 Nov '11, 16:30

Gnonthgol's gravatar image

Gnonthgol ♦
13.8k16103198
accept rate: 16%

I looked at them,when I am accessing the OpenLayers.js,one of the methods is looking for a username and password where I wont provide,and its displaying the message Access is denied javascript error So,Any ideas what user name and password should be passed in this method ?

I am trying to render this map on an .aspx page,instead of an html page as the open layers examples are showing Looking for your cooperation

Thanks a lot

(05 Nov '11, 12:31) VenuGopal

Error I am facing is similar to like this http://trac.osgeo.org/openlayers/ticket/2857

(05 Nov '11, 13:04) VenuGopal

1

An alternative way to display maps and have markers and vectors on it is using Leaflet. You can find more at http://leaflet.cloudmade.com

answered 13 Nov '11, 14:53

ChrisH's gravatar image

ChrisH
4.1k134262
accept rate: 15%

Source code available on GitHub .