I've changed a directory site with google maps to mapbox map, due to the payment policy of google...Everything is okay but the same coordinates of poi in google maps are in different places on mapbox maps? Why? Is there any formula to fix this issue?
Ok, it's simple....Coordinates are in reverse in both cases....
lat, long --> long, lat....
Related
I want to use the google maps javascript API for my project. I am using directions API to show path between two places on the map. My problem is since this app is focusing on a very rural area all the paths in the area still not in the google maps. Can I include those new paths to my instance of google maps and use the directions API to navigate through the paths? How can I do this? Is there a way to add a path to map as a polyline and use it for directions?
Update:
here is a screenshot of the application I was developing.
The white color path, works with directions api. I draw a polygon with coordinates I know of the unknown path, I want to use that path with directions api to show directions.
I have recorded flight track data (lat, lon, altitude, angle, speed...) and want to simulate a cockpit view of the recorded flight.
Is there a JavaScript API to do this in 3D Google Maps (set and move camera view in Google Maps 3D)?
I am new to Google Maps API and cannot find documentation for this.
I think you can't do it using Javascript API. But closest thing for this is by using Styled Maps. As of now only Google Maps Android API and Google Maps SDK for iOS
can do it.
I found the very cool framework cesiumjs
which provides excatly what i was searching for.
Set camera with heading, roll, pitch and altitude.
Is it possible to make a bend in Google maps polyline.
Sample Example is here
I want to make a line over the railway and not a straight line.
Is it feasible?
Yes of course, you only have to look at the documentation of google maps, there are many examples, you just have to replace the latitude and longitude Google Maps API
I am looking to migrate from Google Maps to planetary.js and I need to move a bunch of markers. Does anyone know how Google Maps coordinates match to coordinates in planetary.js?
If I have a Google Maps location such as "-33.654437, 151.188164" - what does this map to in planetary.js?
Those should be latitude/longitude coordinates, and you can be converted into x/y coordinates on the planet's projection via D3's projection. The projection is exposed in Planetary.js as planet.projection.
As it seems they are the same, switching the x and y coordinate works for me.
Google / Openstreetmap: "-33.654437, 151.188164"
Planetary.js: (151.188164, -33.654437)
I'm not sure where to start looking in the documentation, but I'm trying to load map images of cities with their boundaries outlined.
Like this...
Any help getting started would be greatly appreciated, I'm pretty new to the maps api.
Thanks
There is currently no way to request a map with boundaries automatically rendered on it. Your best bet is to pull the polygon information from another system and render using an encoded polyline if you're using the Static Map API or regular overlays in the JavaScript API.
Google Static Map API
Here it is
here, some links to help you:
Geographical boundaries of states/provinces -> Google Maps Polygon
EInsert extension
Boundary Draw - Google Map Application
Getting neighbourhood boundaries from Google Maps API
https://stackoverflow.com/questions/8441467/can-you-draw-custom-search-boundaries-in-google-map
Ability to draw boundaries on Google Maps