Code Monkey home page Code Monkey logo

openlayers_plus's Introduction

openlayers_plus is a collection of behaviors that work with the Drupal OpenLayers module, version 2 and up. This module requires the OpenLayers module, but not vice versa.

This provides the following functionality:

  • BlockSwitcher: a clone of LayerSwitcher, with better themability and positioning via the Drupal block system.
  • BlockToggle: a version of BlockSwitcher that toggles between two different layers only. Useful for situations in which layers represent the same data in slightly different ways.
  • Legend: a block in a corner of a map that provides information on layers.
  • Permalink: a version of Permalink optimized to persist layers between pages with different layer setups and without explicitly using the control.
  • Popup: an interaction with point-based, clustered maps that allows clicking on points that results in scanning between items.
  • Tooltip: an interaction with point-based maps that results in following links on hover.
  • Scale Points: dynamic styling, changing point radii based on a certain value

This module does not provide thorough theming or accessory images: it's the responsibility of the site builder to tune styling.

openlayers_plus's People

Contributors

febbraro avatar wrynearson avatar yhahn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openlayers_plus's Issues

Openlayers Plus tooltips

Is there a way to make the tooltips text appear on a white background? The text gets lost on top of the map detail and other markers and so is barely legible. I'm hoping it is possible to add a white background or failing that, to change the color of the text.

I am by no means an expert on programming, so if there is a place in openlayers_plus_behavior_tooltips.js that I need to go to do this, instructions for a dumby would be much appreciated.

Thank you!
Yanni

OpenLayers rerquires OpenLayers Plus to pass argument in called function

Line 850 in openlayers.module is being called by openlayers_plus modules.

 /*
  * @param $defaults default values for the form as an array
  * @return a FormAPI form
  */
 function options_form($defaults) {
   return array();
 }

This is line 21 from openlayers_plus_behavior_blockswitcher.inc

  $form = parent::options_form();

Here are the lovely warnings this produces

Warning: Missing argument 1 for openlayers_behavior::options_form(), called in C:\wamp\www\rec\sites\all\modules\openlayers_plus\behaviors\openlayers_plus_behavior_blockswitcher.inc on line 21 and defined in openlayers_behavior->options_form() (line 854 of C:\wamp\www\rec\sites\all\modules\openlayers\openlayers.module).
Warning: Missing argument 1 for openlayers_behavior::options_form(), called in C:\wamp\www\rec\sites\all\modules\openlayers_plus\behaviors\openlayers_plus_behavior_blocktoggle.inc on line 17 and defined in openlayers_behavior->options_form() (line 854 of C:\wamp\www\rec\sites\all\modules\openlayers\openlayers.module).
Warning: Missing argument 1 for openlayers_behavior::options_form(), called in C:\wamp\www\rec\sites\all\modules\openlayers_plus\behaviors\openlayers_plus_behavior_scalepoints.inc on line 32 and defined in openlayers_behavior->options_form() (line 854 of C:\wamp\www\rec\sites\all\modules\openlayers\openlayers.module).
Warning: Missing argument 1 for openlayers_behavior::options_form(), called in C:\wamp\www\rec\sites\all\modules\openlayers_plus\behaviors\openlayers_plus_behavior_tooltips.inc on line 15 and defined in openlayers_behavior->options_form() (line 854 of C:\wamp\www\rec\sites\all\modules\openlayers\openlayers.module).

Field length of OL+ Scalepoints "Fields" field

First, I would like to say thanks for the module. As I learn more about Drupal I am continually amazed at the tools different people have built. OpenLayers & OL+ are no exception.

I am building a multi layered map with Scalepoints in OL+. The challenge I am running into is that the "Fields" field in Scalepoints seems to be limited to 128 characters. I am trying to enter a comma separated list of 4 field names that are a little on the long side and have run out of room. Is there an easy way to change the character limit? If no, I can go back and shorten my field names.

Thanks,

Mike

htmlspecialchars() expects parameter 1 to be string

Hi all
Thanks for all openlayers development ! It's a great suite !!!
I've just tested the openlayers_plus module and i have this warning when i edit a preset :
warning: htmlspecialchars() expects parameter 1 to be string, array given in mysite_path/includes/bootstrap.inc on line 857.
Cheers
Tim

Where is legend enabled?

Surely this must be obvious and I'm just missing it...

Drupal/OpenLayers6.x-2.x-dev (dec14) and just installed this one (01mar).

The docos mention "a block in a corner of a map that provides information on layers"

I've enable the "ol+blockswitcher" and specified that it run on the page where the map is displayed.

The map is displaying a number of WMS layers from a remote server.

The ol+blockswitcher does not seem to display any information at all...simply rpints out:

Map layers
Base layers
Data layers

as H2 heading text...no links, no display, nada.

Any pointers very much appreciated!

scale points instruction..?

I am having a hard time implementing the scale points behavior with openlayers plus and was wondering if there are any instructions for doing so? I am trying to scale points of a taxonomy based on node count but can't get anything to show up. If anyone could point me in the right direction I'd really appreciate it.

thanks a lot

Where is legend enabled (v2)

Apologies: cannot see how the previous issue was closed (by mistake?)...or how to re-open it.
Here is is again:

Surely this must be obvious and I'm just missing it...

Drupal/OpenLayers6.x-2.x-dev (dec14) and just installed this one (01mar).

The docos mention "a block in a corner of a map that provides information on layers"

I've enable the "ol+blockswitcher" and specified that it run on the page where the map is displayed.

The map is displaying a number of WMS layers from a remote server.

The ol+blockswitcher does not seem to display any information at all...simply rpints out:

Map layers
Base layers
Data layers

as H2 heading text...no links, no display, nada.

Any pointers very much appreciated!

Hovering should use 'pointer' cursor

When using Tooltips, you can click on markers to go to their respective pages, however the cursor doesn't change. Can you make the cursor change to 'pointer' when hovering over markers with tooltips enabled?

Popups: count is NaN

If I enable OL+: Popups (but not OL+: Tooltips) the popup shown on hover displays "NaN" for the count -- printed from this:

text += "<div class='popup-count'>" + parseInt(feature.attributes.count, 10) + "</div>";

Also, when I click the popup (for a single point,) the pager section shows "1 / 0" ...

Blockswitcher on Drupal7

I downloaded the openlayers_plus version for Drupal 7 on a D7 fresh install.
If i simply activate the Blockswitcher, the block doesn't appear on the block page. If I turn on the option "Show blockswitcher in map", the page refresh without activating the option and if I turn on the option again I receive a HTTP Error 500 (Internal Server Error).
Is the porting to D7 complete?

OL+ Blockswitcher radio buttons not visible when using sidebar block

I've been trying to place the blockswitcher into a block and display the base layers with their radio buttons. I can get the base layer names to show, but no radio buttons. However, when the base layer is clicked, the correct behavior is applied.

When I configure to place the blockswitcher into the map, the radio buttons are drawn correctly.

I feel like I'm missing something something easy and could use some direction.

Popups

I'm trying to setup my map to display popups, and it currently works, but I don't know how to make multiple nodes appear in the popups...

According to this site, popups work with clustering so that when you click on a cluster's marker, you can apparently scroll through teasers of the nodes within that cluster. However, when I enable clustering, markers disappear altogether...

What I'd prefer, is that markers are for taxonomy terms and when you click on a term's marker, you can scroll through the nodes for that term in the popup. Is this possible?

My test site can be viewed here: http://maptest.gudo.netengine.com.au/
The Taxonomy Map is a working map using the tooltips functionality. The Popups Map is what I have the issue with. Ideally, I'd like it to work the same at the Taxonomy Mpa, just showing the nodes in a popup rather than on a separate page.

Any assistance would be much appreciated!

Notice in scalepoints.inc get_layers()

Notice: Undefined index: vector in openlayers_plus_behavior_scalepoints->get_layers() (line 178 of /Users/frank/web/drupal6/sites/all/modules/openlayers_plus/behaviors/openlayers_plus_behavior_scalepoints.inc)

According to the TODO: in the file it looks like something is to be removed if Openlayers is post alpha8. I have alpha10 installed, so thinking this is possibly what is causing it?

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.