Giter VIP home page Giter VIP logo

inkdrop-ol's Introduction

OpenLayers map integration for Inkdrop

Supports OpenStreetMaps, Bing Maps and Google Maps.

Install

ipm install ol

Example

Bing Maps

```ol
source: bing

view:
  # The center coordinates can be taken from Google Maps
  center: [34.652500, 135.506302]
  zoom: 9
```

Center Marker

```ol
centerMarker:
  enabled: true
  scale: 1
```

Custom Marker

```ol
centerMarker:
  enabled: true
  scale: 1
  anchor: [0.5, 1]
  src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAA...'
```


Usage

See all available options here: defaults.yml


Default options

image

Advanced options

image

Google Maps

Does not work without API Key

image


Version history

See the CHANGELOG.md for an overview of what changed in each update.


Attributions

Marker icon pin by ONN Digital

inkdrop-ol's People

Contributors

ventsislav-georgiev avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

inkdrop-ol's Issues

Add some examples in the readme

Hi Ventsi,

I tried your plugin and it works great.
Since the demo screenshot is an image, could you add some examples in the readme so that people can quickly try it?

Besides, I can't get it to point to Osaka, Japan with the following parameters:

source: osm
bing:
  imagerySet: CanvasDark
size:
  fullscreen: true
view:
  center: [34.6904406, 135.5350124]
  zoom: 4

https://www.google.com/maps/place/%E5%8D%81%E4%B8%89%E9%A7%85/@34.6904406,135.5350124,12.03z/data=!4m5!3m4!1s0x6000e5d201ff48ef:0x20ed63b5efed9710!8m2!3d34.7202216!4d135.4820681?authuser=1

I copied the latitude and longitude from Google Maps.
Thanks for the help!

Support pin

It would be useful if it supports dropping a pin at the center of the map ๐Ÿ™
That way you can take memos about places :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.