I am theme developer. For my template I have plugin where user can set options for google map and of course generate this on template page. But not everyone have google maps API key. I don't wanna demand from user his api key. I have also seen template written by someone else and no one wanted from user his api key. So what should I do now with this?
Another question is what javascript code should I use to generate map? In my form I have following fields:
Map Height (px): (int)
Google Map Address 1: (eg. Wiejska 8 Warsaw)
Google Map Address 2: (optional)
Google Map Address 3: (optional)
Google Map Address 4: (optional)
Google Map Address 5: (optional)
Zoom Level: (int)
Zoom Map on Mouse Wheel: (YES/NO)
Custom Map Style: (YES/NO)
Color Overlay: (eg #FFF)
Saturation: (int)
Lightness: (int)
Yes, at least for now you can use Google maps without an API key. See Using google maps without API Keys? for a discussion on the subject.
As for what your code should look at, take a look at Google's examples . Play around with them, and if you run into issues feel free to ask more specific questions.
Happy coding!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.