Skip to main content

All Questions

Tagged with
0 votes
1 answer
82 views

Openstreet map shows blank portion when increase length

I am displaying openstreet map on my web page with origional dimensions 970/256(width/height). It works fine. I have also added a button on the page. When user presses this button the map width ...
Azeem's user avatar
  • 2,914
3 votes
1 answer
3k views

Multiple maker on the same place with leaflet

I tried to display a lot of marker on a leaflet map. The data of the marker - coordinates, text... - are stored in a text file. I made a parser who parse the text, put the data in a big array and ...
Xavier's user avatar
  • 3,989
3 votes
2 answers
2k views

Using leaflet mapping api, how do you determine which point in a polyline was clicked on?

I'm using the Leaflet mapping API. I would like to determine which point in a polyline has been clicked on. The polyline is one that I have rendered using the Directions services from MapQuest Open. ...
Yermo Lamers's user avatar
  • 1,951
6 votes
4 answers
6k views

CDN library blocked in Chrome

I'm using leaflet/OSM for a small map on a site. The site itself is accessible via HTTPS while the leaflet library can (afaik) only be retrieved via a HTTP connection. Now Chrome doesn't include the ...
kaiser's user avatar
  • 22.2k
2 votes
1 answer
1k views

How does one specify an "active" region of a leaflet map?

Please consider: http://jsfiddle.net/msNs5/3/ I have a map div that expands to full size on page load, and another semi-transparent div that covers the bottom of it. Aesthetically, I really like how ...
user avatar
3 votes
3 answers
9k views

LeafletJS popups positions and markers add and remove issue

I am implementing displaying locations on openstreetmaps using leafletjs API. Here is the scenario, When the page loads a JS function is being triggered which will query DB to get current locations of ...
Azeem's user avatar
  • 2,914
2 votes
3 answers
6k views

Is it possible to save Openstreets Map (leaflet) as an image

I am using leaflet with openstreetmaps to generate a map on Ext js panel. As maps are coming as tiles in openstreet maps, I need to combine these tiles to create a single image in order to save as an ...
Rahul G Nair's user avatar
  • 1,376
4 votes
1 answer
4k views

delete the marker along the circle around it

I am working with Open Street Maps and using leaflet library. I have a layer group like this: var testLayer = new L.LayerGroup(); --> declared in a different file I want to add markers to a ...
troy's user avatar
  • 1,017
9 votes
1 answer
4k views

Single Event Handler for Multiple Events in Leaflet

Is it possible to create a trigger for multiple events in this manner? map.on('click, dragstart, zoomstart', eventHandler); If not what will be the next best way to trigger the same event handler ...
Nyxynyx's user avatar
  • 62.9k
3 votes
1 answer
2k views

Leaflet Markerclusterer with Leaflet.Label

Question: Is it possible to use Leaflet.label on Leaflet.markercluster? Problem: I am trying to have a HTML div appear when the cursor hovers over a cluster icon. For a normal Marker, you can use ...
Nyxynyx's user avatar
  • 62.9k
1 vote
2 answers
4k views

How to integrate js leaflet with Backbone js?

I am trying to develop an application that is based on Backbone JS. I want to embed a OpenStreetMap map based on leaflet JS but I could not find any tutorial.
Saoud Nidhal's user avatar
0 votes
1 answer
444 views

How to do ^= match with CartoCSS?

Looking at the following DBF database, how would I go about targeting the "hospital" type? In CSS3 you can do something like *[attr^='hospital']. I don't know how to do this with CartoCSS, however. ...
Wildhoney's user avatar
  • 4,969
10 votes
1 answer
13k views

How to get the Lat, Long of a clicked location using leaflet Api

I am using OSM with leaflet API. Now I want to get the lat and long of a clicked location. I meant something similar to this: http://openlayers.org/dev/examples/click.html map.events.register("...
troy's user avatar
  • 1,017
29 votes
6 answers
27k views

How to identify Leaflet's Marker during a `popupopen` event?

when a marker is clicked, I need to execute some code that finds the id corresponding to the marker being clicked , retrieves data from backend API, then adds the newly retrieved data to the content ...
Nyxynyx's user avatar
  • 62.9k
2 votes
1 answer
5k views

2 different Leaflet Popup styles

Is it possible to have 2 different styles for Popups in Leaflet? 2 different popups (in terms of style and content) will be triggered on user interaction, one on mouseover and one on click. Problem: ...
Nyxynyx's user avatar
  • 62.9k
3 votes
2 answers
4k views

Leaflet markers do not open popup on click

I just started using Leaflet and Marker Clusterer to organize the markers. Problem #1: When an unclustered marker is clicked, no popup appears. Problem #2: When a cluster is clicked several times, ...
Nyxynyxx's user avatar
  • 196
1 vote
1 answer
2k views

Add external links to leaflet polygon

I use leaflet to display geographic zone with multiple polygons on a map and I want to link on click each layer to a webpage. For example the link (http://wikipedia.com) should be in replacement of "...
Henri Labarre's user avatar
6 votes
2 answers
3k views

Using Fusion Tables tiles in Leaflet.js or on non-Google map base?

I love the fact that Google Fusion Tables can show many thousands of markers on a map efficiently. My question: is it possible (both technically and legally) to display a Fusion Tables layer on top ...
flossfan's user avatar
  • 10.7k
55 votes
1 answer
48k views

Get address from co-ordinates using OpenStreetMap [closed]

I'm looking for a solution which gives an address based on co-ordinates (Latitude & Longitude) which I got from html5 geolocation api. I'm using OpenStreetMap.
vishal's user avatar
  • 695

15 30 50 per page
1
���
15 16 17 18
19