GithubHelp home page GithubHelp logo

rubium-web / oc-yamaps Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 0.0 18 KB

Yandex Maps Plugin plugin for OctoberCMS.

License: MIT License

PHP 65.12% HTML 34.88%
octobercms octobercms-plugin yandex-maps

oc-yamaps's Introduction

Rubium.YaMaps Plugin

A locations and maps management plugin.

Plugin Dependencies

This plugin depends on Rubium Backend Yandex Maps Widgets.

Description

This plugin allows you to:

  • Manage your locations.
  • Configure your maps.
  • Select the locations to show on a given map.
  • Show your map with its locations on the front-end of your site.

Contents of this plugin

A simple location manager

  • Uses the YaMaps FormWidget to select the position of the location on a map.
  • Uses the YAddress FormWidget to find an address and is position on the YaMaps FormWidget.
  • Define aditional information to display on the map.
  • Select in which maps you want to display the locations.

A simple map manager

  • Select map Width and Height.
  • Select the initial position of the map.
  • Select the initial zoom of the map.
  • Enable/disable fitToView option.
  • Enable/disable the Map Type Selector.
  • Define the position of the Map Type Selector.
  • Define the style of the Map Type Selector.
  • Select witch Map Type.
  • Select the available Map Types to use.
  • Enable/disable the Zoom Control.
  • Define the position of the Zoom Control.
  • Select which locations to display on the map.

A map component

  • Uses the yaMap to render a Map with its Locations.

Example:

On the Frontend

[yaMap]
map = 1
mapTypeId = "yandex#map"
zoom = 12
showMarker = "true"
fitToView = "true"
==
{% component 'yaMap' %}

oc-yamaps's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

oc-yamaps's Issues

Nothing display

Added this into my model fields.yaml:

map:
    label: 'Yandex Maps'
    type: yamaps
    fieldPosition:
        latitude: '55.75417429118003'
        longitude: '37.62009153512286'
    height: "380px"
    editable: false
    zoom: 15
    markers: locations

There is no map display. Javascript display the following error:

SyntaxError: Unexpected token '<'. Expected a property name.
(anonymous function) 65:399

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.