Im Gegensatz zu Bing erlaubt Google nicht, dass seine Kartenkacheln direkt in Openlayers verwendet werden, und Sie können keinen OpenLayers-Code in der Google Maps API verwenden, so dass Sie einen Großteil davon neu schreiben müssten. Es ist jedoch möglich, Javascript zu verwenden, um eine Openlayers-Karte und Steuerelemente über eine Google-Karte zu legen.
Wie kann ich Basiskarten zu OpenLayers hinzufügen?
Um auf Vektor-Basemap-Ebenen zuzugreifen, verwenden Sie die Bibliothek im Ol-Mapbox-Stil.
Stellen Sie die Stil -URL und Ihre API -Taste fest.
Laden und wenden Sie den Basemap -Stil mit OLMS auf eine Karte an.
Wie erstellt man eine einfache Karte mit einem Marker in OpenLayers?
So erstelle ich eine einfache Karte (mit einem Marker) mit OpenLayers? des Abschnitts
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.