Git Product home page Git Product logo

arcgis-js-api-examples's Introduction

arcgis-js-api-examples

基于 ArgGIS for JavaScript 的示例

环境: Arcgis v3.19

安装方法

1.文件部署到一台 HTTP 服务器

下载项目代码部署到如下位置 (此处以 Tomcat 为例)

<apache_tomcat_home>\webapps\arcgis\3.19\

2.配置 dojo 位置

在文本编辑器中打开 <apache_tomcat_home>\webapps\arcgis\3.19\init.js, 然后搜索 'ditu.fuwu.io:7020/arcgis/3.19/', 将值替换为 "<your_server>:8080/arcgis/3.19/"

在文本编辑器中打开 <apache_tomcat_home>\webapps\arcgis\3.19\dojo\dojo.js, 然后搜索 'ditu.fuwu.io:7020/arcgis/3.19/', 将值替换为 "<your_server>:8080/arcgis/3.19/"

3.引用地址

样式引用

<link rel="stylesheet" href="http://<your_server>:8080/arcgis/3.19/dijit/themes/claro/claro.css">  
<link rel="stylesheet" href="http://<your_server>:8080/arcgis/3.19/esri/css/esri.css">

脚本引用

<script src="http://<your_server>:8080/arcgis/3.19/init.js" data-dojo-config="locale:'zh-cn'"></script>

4.演示地址

如果部署成功 可以在 http://<your_server>:8080/arcgis/3.19/index.html 看看示例

在线演示 http://map.x3platform.com

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.