Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

How can I give a name to a marker on Google Maps?

Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there!

I’m trying to learn some new things with Javascript. This time with Google Maps.

I already created a script for searching for a place. When I click on search it shows me the place on Google Maps with a marker. The next thing I want to do is to give the marker a name by means of an input field  when I move with my cursor over it, just like this pic. This is what I’m trying to do.
I already tried some things but I can’t figure it out. As you can see in my script I tried some things with the variable ‘namemarker’.



I hope someone can help me, thank you in advance for the help!
Posts: 67289
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's called an "Info Window" and you can look it up as such in the Google Maps API documentation.
Everybody's invited. Even this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!