Giter Site home page Giter Site logo

esriuk / mapstyler Goto Github PK

View Code? Open in Web Editor NEW
22.0 7.0 9.0 1.5 MB

Style an Esri vector tile layer style using an image or colour palette

Home Page: http://esriuk.com/mapstyler

License: Apache License 2.0

HTML 6.99% CSS 26.63% JavaScript 66.38%
javascript esriuk-localisation esriuk arcgis-js-api arcgis-vector-tiles vector-tile-layer

mapstyler's Introduction

mapstyler

About

mapstyler is an app to help you quickly style a vector tile layer using an image. It was built using Esri's dark gray canvas vector tile layer, version 4 of the ArcGIS API for JavaScript, Color Thief, RainbowVis-JS and Spectrum.

Check out the app here.

What's new in version 2.0?

  • New design
  • Modularised codebase
  • Mobile version allowing you to take a picture for use to style the map
  • Undo/redo stack
  • Colour tweaking for maps styled using images

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Grunt commands

Requirements

Installation

  • clone this repo
  • cd into the root dir of project
  • run: npm install
  • run: grunt watch

... now if you edit the .less files the Grunt Task Runner will watch for change and compile you nice new .css files.

Licensing

Copyright 2017 ESRI (UK) Limited

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the Licence.

mapstyler's People

Contributors

bflanaganesri avatar gi5 avatar rmumford avatar rstevens354 avatar tricky354 avatar

Stargazers

 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

mapstyler's Issues

Saving vector tile generates an invalid redirect_url

Hello first of all, I would like to say that this version 2 is great.
I was trying to generate a vector tile downloading mapstyler project and executing it on my web server.

The problem is that when I push on save button , I can see a new smaller browser window that says me invalid redirect_url instead of showing me the arcgis online login.

I supose that the problem is because of the proxy and the cliendid the app is currently using.
I tried to create a new app on my account and register it too to get a new cliendid. Then I used that cliend id and put it on portal.js

Finally as I can see, the proxy url should be pointing to your proxy url and not getting it from my current url, so I decided to force that url giving the following value "http://apps.esriuk.com/app/mapstyler/8/wmt"

captura de pantalla 2017-10-05 a las 19 45 28

Thats what I did with the first mapstyler version , and it worked. However, with this version definitely not.

So I decided to keep your client id and continue using your proxy url instead of getting it using "document.location.href" on image.js .... forgotting the idea of using my own app client id

It happens the same, and the message is talking about wrong authentication. I include the next picture using chrome dev tools analysing the network requests if it helps

captura de pantalla 2017-10-05 a las 19 44 36

Could you please tell me how can I solve this?

Again, great job with this new version, it's much better.

Regards

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.