any tips for implementing Google maps, open layers, or open maps?
I've unsuccessfully tried to add a map to a page. Does anyone have a good example?
10 Replies
Are there any specific requirements you have or you just need a map?
Like do you need it to be up to date?
@TheJhonny
I created an event page and within that page I'm gonna pull in my event details. So I'll have an address and I'll just need to show that location.
They might be able to zoom out
But nothing complex like plotting
the two types of maps are up to date maps and delayed maps , up to date free maps are w google, the rest are paid (mapbox etc)
up to date means that it has recent roads development etc
you can get a totally free non google map
but it'll be kinda outdated
I see. I don't mind it being Google
Then you need to register to google developer portal
request the google map javascript api
then add the credential with whitelisting your localhost and ur deployment domain
use whatever client api given to the sdk
Google Maps Platform
YouTube
How to load Maps JavaScript API in React
Learn how to use the official React wrapper for the Maps JavaScript API. In this Geocast, Leigh Halliday demonstrates how to load the Maps JavaScript API and place a marker on the map in React, in just 5 minutes!
Watch prt two of this video → https://goo.gle/3K2sAvk
Github → https://goo.gle/3CQLSkS
Google Maps JavaScript API React Wrapper on...
the setup takes ALOT of time
but thats google for you
also iirc google has like 5 javascript map sdks
most of which are abandoned
but they rarely clean up the mess
anytime you have to deal with google it'll be annoying as hell so be patient
most of their shit is automated which is why it seems broken
Lol.
I'll give it a whirl. Thank you
if anyone suggests that you can automate your whole business with AI just tell them about how google does its shit
I'm playing around with ai at the moment and it's really cool, but it's wrong quite a bit.