Giter Site home page Giter Site logo

ocmv's Introduction

ocmv

Configureable Map Viewer using OpenLayers 3. A map viewer based on CMV.

alt tag

###Supported Data Types:

  • WMS

###Current Widgets:

  • Bookmarks
  • Draw
  • Growler
  • Help
  • Home button
  • Identify popup
  • Measure
  • Locate button
  • Map info
  • Overview map
  • StreetView

###Upcoming Widgets:

  • Search
  • Attribute table
  • Edit
  • Print

###Client technology used:

###Proxy If you don't own or can't manage the server side to consume your WMS avoiding issues with Cross Origin requests - requests with different domain and/or port than your javascript application - you can setup a third party proxy app like this one.

Alternatively, you can enable cors on the software running GeoServer or others.

Once you have your proxy setted up, you can configure it on ocmv like this:

viewer.js

return {
    // used for debugging your app
    isDebug : true,
    
    ...

    proxy : {
        enabled : true,
        address : 'http://myserver.com/proxy/proxy.ashx?', // in this case, using DotNet proxy
        alwaysUseProxy : false,
        useProxyWhen : [/mygeoserver-dev:8080/ig, /mygeoserver-prod:8080/ig],
        usePHPHandlers : false
    },
    
    ...

Where:

  • enabled must be true if you wish to enable application's proxy handling;
  • address must be your proxy app address part, which will be concatenated with the actual URL;
  • alwaysUseProxy must be false if you wish that we proxy only URLs defined by you in the next attribute;
  • useProxyWhen must be an array of RegExp patterns that will define URLs to be proxied or not.
  • usePHPHandlers must be true if you wish to use ocmv's built-in PHP scripts ([ocmv folder]/proxy) to handle requests when necessary. It overrides any other proxy configuration except enabled, that still need to be true.

###Contributing

  • Pull requests

ocmv's People

Contributors

vojvod avatar carrbrpoa avatar

Watchers

James Cloos avatar Gaudissart Vincent avatar

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.