Socket
Book a DemoInstallSign in
Socket

geo-picker

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geo-picker

geo-picker

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

GeoPicker

Screenshot

Demo

https://rawgit.com/appleple/geo-picker/master/test/index.html

Install

npm install geo-picker --save

Usage

js

const editor = new GeoPicker('.js-geo-picker');

html

<table class="formColumnMap {diff} js-geo-picker">
  <tr>
    <td class="formColumnMapTd">
      <div class="acms-admin-margin-bottom-small">
        <input type="text" size="34" name="mapSearchTexts[]" value="" class="mapSearchText js-search">
        <input type="button" name="mapSearchButtons[]" value="検索" class="acms-admin-btn-admin js-search-btn">
      </div>
      <div class="acms-admin-gmap-container js-map" style="position:relative;">
        <img class="column-map js-img" src="" width="400" height="400">
      </div>
    </td>
    <td class="entryFormFileControl">

      <table class="entryFormImageTable">
        <tr class="textM detail-column-body detail-column-body--{id}">
          <td>
            <dl class="acms-admin-margin-none">
              <dt><label for="unit-map-lat-{id}">緯度</label></dt>
              <dd><input type="text" name="map_lat_{id}" value="35.1814" size="9" id="unit-map-lat-{id}" class="acms-admin-form-width-mini js-lat"></dd>
              <dt><label for="unit-map-lng-{id}">経度</label></dt>
              <dd><input type="text" name="map_lng_{id}" value="136.9064" size="10" id="unit-map-lng-{id}" class="acms-admin-form-width-mini js-lng"></dd>
              <dt><label for="unit-map-zoom-{id}">ズーム</label></dt>
              <dd><input type="number" name="map_zoom_{id}" value="13" size="2" id="unit-map-zoom-{id}" class="acms-admin-form-width-mini js-zoom"></dd>
              <dt><label for="unit-map-msg-{id}">吹き出し ( HTML可 )</label></dt>
              <dd><textarea name="map_msg_{id}" rows="9" id="unit-map-msg-{id}" class="map_msg_id js-msg">吹き出しのメッセージが入ります</textarea></dd>
            </dl>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

Method

update pin location

editor.updatePin({lat, lng, zoom});

destroy the editor

editor.destroy();

FAQs

Package last updated on 28 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts