An object used to indicate a position, place, or route

learn more… | top users | synonyms

1
vote
0answers
331 views

Leaflet markers do not open popup on click (with markerclusterer)

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, ...
1
vote
0answers
122 views

How to add text for markers not icon

I have a Open Layers map project where I currently add dynamic markers based on a query but I really want to show some text instead of the marker icon. Is there a way I can either render some text to ...
1
vote
1answer
2k views

Google Maps MarkerClusterer - Remove all clusters

So, I have a PostGreSQL DB with 317 datapoints - all spatially enabled through PostGIS. I have queried this using PHP as GeoJSON and overlaid it on Google Maps (using a converting routine). I have ...
0
votes
1answer
42 views

How to add event listener to many markers on the map?

How can I add an event listener to many markers on the map? I know how to add an event listener to a single marker say: var marker = L.marker(...); marker.on('dragend',function(){...}); So, how can ...
0
votes
1answer
2k views

How can I change the style of marker in leaflet (from GeoJSON)?

I'm serving GeoJSON to leaflet and by default it get a blue icon marker. I'm trying to change the style so I'll be able to use the feature properties as part of the style , but no matter what I do , ...
0
votes
1answer
638 views

Not showing multiple markers on OpenLayers

I want to show multiple markers on my Google map with OpenLayers. Below is my code : for (var pointcount = 0; pointcount < jsonObj.length; pointcount++) { if (jsonObj[pointcount].Long != null ...
0
votes
1answer
89 views

How can I create a button to add a POI layer?

I am making a map of a city with openlayers. I have the shapefile data of the POI (hospital,bank,school etc.) I want to add the layers with buttons not in layerswitcher. Like whereis.com's quick ...
0
votes
1answer
40 views

How to avoid Displacement of Marker Symbols with X-Offset

I'm trying to mimick a line symbol style that is comprised of the line and 2 alternating markers. I use an interval placement of 10 units for the 'blocks' (custom svg) and 5 for points, thus every ...
0
votes
1answer
463 views

Go to the URL when clicked on Leaflet marker

I want to implement marker click event so when user click on marker it goes to url. Url is written inside an array (a[3]). However, this is my code which doesn't work, it always goes to the link of ...
0
votes
1answer
215 views

Center (and add points too) a map with LonLat

I'm new to OpenLayers, so I'm sure this will be an easy win for someone :) I'm trying to center a map on a point (and place markers) using lon/lat but it appears to take everything as meters? ...
0
votes
2answers
602 views

OpenLayers: How do I keep a feature fixed while the map layer is moved (like in-car GPS displays)?

I am aiming to create something simple that works like a GPS navigation display, where the marker for 'you are here' is fixed while the map moves along. I have latitude and longitude coordinates ...
0
votes
1answer
608 views

Showing custom markers, shadows and popups from json data

The examples given in the documentation of Open Layers show very basic ways of utilising the different features. This example shows how to add shadows to the marker. This example shows how to create ...
0
votes
0answers
29 views

Why my annotation markers are printed smaller?

I annotated one of my maps, for every annotation I set an svg marker whose dimension is either 6 or 8 mm. Everything looks fine in the main window. The problem arises when I try to print my map using ...
0
votes
0answers
35 views

Updating Mapbox map to newest API/getting markers to load

I'm new to the Mapbox API (and to Javascript in general), so please bear with me. I am trying to build an interactive map that automatically cycles through map markers as the user scrolls through ...
0
votes
1answer
57 views

Simplest way to display a new marker on a map already displayed?

Could someone provide an example of the most dirt simple method to force a new marker to pop up based on a given lat/lng? I do not need js to write to my db, as that will be done server side; but I ...
0
votes
1answer
398 views

Drawing aerial routes for flights on Google Maps API between two markers?

I have been drawing route till now using DirectionService. But now my current requirement is to draw a route on air.I did some research and found this link which helps us to draw curved polylines ...
0
votes
0answers
131 views

KmlMouseEvent not working on Google Maps API

I have this application where in I have loaded a kml file over the google map layer.I have these point layer markers from the KML. Now how do i obtain lat/long on the click of markers?. Please guide. ...
0
votes
0answers
121 views

Google map v3 and markers

I have a map google v3. What code to write, to add markers with pop-up windows, the coordinates of which are stored in the database mssql server 2008 r2? Markers a lot about 1500. Can cycle to read ...
0
votes
1answer
1k views

How to show Label of a new feature Layer in Openlayers…?

I have created a dynamic new feature layer along with a marker using openlayers with popups, but, I want to show labels for each new feature created... Below is the code I used... //To add new ...
0
votes
1answer
1k views

Updating position for a list of markers

I am working with Google Maps. Specifically, I am working with http://hpneo.github.io/gmaps for a gps tracker simulation, here I need to update the position on each point. At the gmaps script, ...
0
votes
0answers
190 views

OpenLayers.Layer.Markers Does not works with Google maps

Hello I am currently Testing OpenLayers, but I have a problem with the markers, the markers that I add with OpenLayers does not work with google maps, all marks appear in the center of the map, not ...
0
votes
0answers
141 views

Can you insert a marker symbol at a specific scale?

I have a map that is consistently used at a 1:500 scale. I want to be able to add structures to the map to view and move them around to get the best fit. The end user is new to GIS and I am trying to ...
0
votes
1answer
358 views

Geomajas: How do I add context menu on a map marker

I'm evaluation Geomajas. Apparently, there's very little info on this framework across the Internet. I've managed to create a context menu for the map (the menu that appears when you right click on ...
-1
votes
1answer
127 views

How to add multiple markers on map and popup different information using OpenLayers? [closed]

Can anybody give me some examples of adding multiple markers on the map?
-1
votes
1answer
346 views

Is it possible to show markers from MySQL database with Javascript?

I'm interested if it's possible to show markers (latit, longit) from MySQL database with Javascript libraries like Leaflet?