Adding Placemarks on Google Earth API - google-maps

Is it possible to allow a user to browse a Google Earth, and decide to add a placemark? I am using Google Earth API.
For example, if the user puts the mouse on a location, to automatically calculate the Long/Alt.
Thank you & regards
Bilal

You will find a good documentation in the section "Draggable placemark".
In addition, there are many very good code samples around. I would recommend:
Creating Placemarks
Draggable Placemark
Placemark Click Event Handling
Interactive Samples

Related

geolocation game event on marker approach

I need some information, I wan't to create a simple game with a geolocation API, I have looked at: Google Map API, MapBox.
I wan't to have the actual location of the user, he can see the map around him (like Pokemon GO), I can put a marker at 10 meters for example, when he approach the marker with his phone, I do an event, a popup appear, and he won a score is increased.
How can I do that ?
Mapbox SDK is versatile and allows for 'MapViews' inside of your own application's activity.
The have a great amount of information inside their docs. I'd say to start with their introduction apps and work your way up once you are familiar.
Ideas:
You could customize the user location icon to be the player and use the proximity controls around the users fine location to reach goals/tasks.
You could then have pins on the MapView that the user's location can interact with

Google Map UI Experience not available in api (borde, style)?

Google Search gives a perfect UI Experience, while I cannot able to bring the same in google api. please advise how to proceed.
I am using kml layer for borderline to country and states, but data is not perfect as google
I tried google embed map, But I don't know how to write the click event on the map, because the map is bind on I-frame.
i attached the image below from google maps
enter image description here
There is already a feature request for this in the IssueTracker for Google Maps Platform. You can star this issue to get updates on it.
https://issuetracker.google.com/35816953

making a custom (non-profit) place in google maps and getting the coordinate of it

I was searching the web for the past two days and I wasn't successful in finding what I want.I want to add my own place (for example my home) to the google maps and then get the coordinates of that place in order to place it in my google maps code in my website.
the only way google is showing me to do so is to add a job for my google coordinates account and then add my custom location(and of course I should pay for it).But this is not a job,I just want my place's coordinates to use in my google maps code!
ps:I've even seen people add their own location with full details of their place in the google maps and I'm pretty sure they didn't pay a penny for it(and everyone in the world can see their place!!!)
So here's the question:How can I do this without paying anything?
Go to the google map on web browser and go to the place what you want by zoom and move and at click you would see the coordnates that you may use in google map code.
No need to add you own place.

Annotate Google Map

i am placing some locations on google map. i need to set text next to marker on the map. is there a way to do it ? because i can not see any tools or option provided by google maps to do.
its not an application i am developing or coding. i am just saving locations on google map site.
Thanks
Look at the InfoBox from the utility libraries. There is an example in the documentation.

Search a google map I have created and embedded into my website

I have a Google map I have created to highlight the location of several support groups by adding my own pins using my maps and embedding this into my website.
Is there a Google widget of any description to allows people to search my custom map and find their nearest support group (or nearest pin).
I have read through the Google maps stuff but cant seem to find anything that meets my requirements.
Any help appreciated.
The map has no clue about which markers or overlays you have put on it. Therefore there are no way you can do what you want using Google Maps directly. You can however do something else.
When you create your markers/overlays and place them on the map you can add them to an array. When you users then enters a location you can search through that array to find the markers that are closest to the location the user has entered. Google Maps API has a method for getting the distance between two latlngs, but you can also use an ordinary Haversine formula for calculating it.
Once you have found the closest markers it is not hard making sure they are the only ones that are shown on the map.