Tagged Questions
1
vote
0answers
49 views
Google Maps v3 with Openlayers - First Zoom Level
I use Google Maps v3 in my application and I noticed a strange behavior, When I refresh the web page, the map zoomed out to display the whole map then get back to the zoom level I specify in my code. ...
0
votes
0answers
27 views
Polygon colors overlap when zoom in the google map [closed]
I have posted this question in StackExchange previously with a different heading, but did not got much response. Posting this time again with some more clarification.
I have implemented a google map ...
0
votes
0answers
26 views
Simulating Random Movement Google Maps [duplicate]
Hi i have a pair of longitude and latitude coordinates and i would like to make a marker move on a map the path that it moves should be randomly generated however i want the marker to move 1 km every ...
0
votes
1answer
112 views
How to draw straight lines inside google map polygon [closed]
I have created a google map using google map javascript API V3. I am drawing number of zipcode polygons. The polygons are of different colors depending upon some condition. Now I want to draw straight ...
0
votes
1answer
91 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 ...
1
vote
1answer
75 views
How do you get the coordinates from a drag event in the Google Maps API V3?
I have made a Google Version 3 Geocoder , I want to be able to pick up the coordinates of the route when it is dragged. I know how to pick up the coordinates giving the start and end points, but, ...
1
vote
0answers
79 views
How to create a Google Maps with draggable routes with fixed markers
I have a webapp where I show a route on a map, I pass two address and show the route on map, so I'd like that this route should be draggable but the points A and B shoud be fixed. How to do this?
1
vote
1answer
434 views
How to geocode addresses from MySQL and add them like markers to the Google map?
I'm using Google Maps API and Google Geocoding for geocoding addresses. I have table named 'users' and column named 'location' in MySQL database. Column 'location' contains addresses. I need to ...
3
votes
1answer
226 views
Google Maps Decodepath change variable name
I have this code:
var directionsService = new google.maps.DirectionsService();
var request = {
origin : start,
destination : end,
travelMode : ...
1
vote
0answers
87 views
How to set up the layer order with Google Maps API?
I'm developing a web mapping site (using google maps api 3.0 and javascript) that combines wms layers and ground overlays (uploaded rasters) that are displayed on top of google maps. The software is ...
2
votes
1answer
172 views
Google Map API Drag event..?
The below code is working perfectly on click event to retrieve Lat/Long and Current Zoom level. How do I get the same when I hover mouse/drag on map Window (not on submit button)?
<!DOCTYPE ...
1
vote
1answer
67 views
Why does an OpenLayers map.getNumLayers() return 0 even though I've added a layer?
When I try the following code, OpenLayers returns a zero result. What have I done wrong, here?
var map;
function loadMap () {
// Based on example code: view-source:
// ...
4
votes
2answers
3k views
How do you get the coordinates from a click or drag event in the Google Maps API V3?
I have made a Google Version 3 Geocoder , I want to be able to pick up the coordinates of the marker when it is dragged or clicked. Below is my code:
<!DOCTYPE html>
<html>
<head>
...
2
votes
2answers
366 views
how to buffer inside a polygon in Javascript
I'd like to know if it's possible to buffer a polygon on the INSIDE only using OpenLayers and other Javascript tools (e.g. jsts).
Here's what I found about the topic in general:
Buffering INSIDE a ...
1
vote
1answer
557 views
map extent to show specific country
I use openlayers in my web app.I want to set map extent on specific country to show cities of that country but i don't know which option of map can show specific country in map!.
How can i show ...