Coder Social home page Coder Social logo

markings's Introduction

Markings

Markings is a library of advanced symbols for the ArcGIS API for Flex. It's designed to give to the developer (You) infinite number of different styles for rendering your Graphics on the Map.

The first featured symbol is the AdvancedLineSymbol. The ArcGIS API for Flex supports a finite numbers of line styles (solid, dash, dashdot, dashdotdot, dot) through the SimpleLineSymbol. The AdvancedLineSymbol lets you define easily, using MXML or AS3, meaningful line symbologies. The symbol does the heavy duty work, projecting the Polyline, clipping it and you just have to provide "line part" which are drawn sequentially. A part can define a solid or dashed line, using Spark strokes or icons which can be placed anywhere along the line using an offset. By animating this offset the line can express a motion.

Requirements.

Getting started.

  • Get the Markings SWC.
  • Create a new application containing a map and some line Graphic.
  • Start styling.

Example of AdvancedLineSymbol

<mk:AdvancedLineSymbol id="lineSymbolRoad">
    <s:ArrayList>

        <!-- White outter stroke -->
        <mk:SolidLinePart>
            <s:SolidColorStroke color="0xFFFFFF" weight="10"/>
        </mk:SolidLinePart>

        <!-- Gray inside stroke -->
        <mk:SolidLinePart>
            <s:SolidColorStroke color="0xAAAAAA" weight="6"/>
        </mk:SolidLinePart>

        <!-- Lane separation -->
        <mk:DashedLinePart pattern="[5, 5]">
            <s:SolidColorStroke color="0xFFFFFF" weight="2"/>
        </mk:DashedLinePart>

        <!-- The car -->
        <mk:IconPart rotate="true">
            <s:BitmapImage width="22" height="15"
                           source="@Embed(source='assets/voiture1.png')"/>
        </mk:IconPart>

    </s:ArrayList>
</mk:AdvancedLineSymbol>

Licensing.

Copyright 2012-2013 Esri

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 License.

A copy of the license is available in the repository's license.txt file.

markings's People

Contributors

ycabon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

alexgiser

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.