`
文章列表
抽点时间从OpenLayers官方网站上找些例子具体解释一下Map、Vector、Feature类的简单用法。有些东西是自己工作经验的理解,没完全按英文解释来理解,希望不会对大家造成误解。工作太忙,以后又时间和精力就不断地解释点,目前有100多个例子呢。以下程序拷到本机应该就能直接应用,我是在Geoserver中运转地 <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>创建不同的Feature类实例 ———— 在电子地图上绘制Feature对象实例的方式有两种,一种是使用默认 ...
//点击一个标注按钮的事件,该方法的作用就是启用添加标注事件 var map_onclick; function enable_click() { map_onclick = new OpenLayers.Control.Click();     map.addControl(map_onclick);     map_onclick.activate(); }     //注册添加添加标注Handler //注册添加标注Event OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {     ...
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>   ...
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>   ...
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>   ...
<!DOCTYPE html> <html>     <head>         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">         <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0&q ...
HTML <body>     <form>     <div id="container">     <div id="header">Header</div>     <div id="content">Content</div>       <div id="footer">Footer</div>     </div>     </form> </bod ...

div内自动换行

    博客分类:
  • html
word-warp:break-word; word-break:break-all;
1、两列布局 1.1、左列固定,右列自适应 #left{    width:190px; float:left; } #right{    margin-left:205px; } 1.2、右列固定,左列自适应 #left{    float:left; width:100%; } #right{    float:left; margin-left:-100px; width:100px; } 2、三列布局 2.1、左右宽度固定,中间自适应 #left{ float:left; width:200px; } #middle{ margin:0 210px; } #right{ ...
<div class="iteye-blog-content-contain" style="font-size: 14px">   <color=red>    一、申明函数的三种方法 (Declaring a Function) 方法一:function functionName([parameters]){functionBody}; Example D1 function add(a, b) {                       return a+b; }                     ...
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>   ...
js中的变量与其他的脚本语言都是很不一样的,在function中你如果不用var 声明一个变量,那么这个变量将在全局可见,也就相当于创建了全局变量。所以在function中声明变量尽量都是用var来声明以避免污染全局变量(可能会覆盖全局已有的同名变量)。  
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page isELIgnored ="true" %> <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.ge ...
<div class="iteye-blog-content-contain" style="font-size: 14px"> <%@ page language="java" contentType="text/html; charset=UTF-8"     pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme ...
alert("location:"+window.location); alert("href: "+window.location.href); alert("protocol: "+window.location.protocol); alert("host&port: "+window.location.host); alert("port: "+window.location.port); alert("hostname: "+window.loca ...
Global site tag (gtag.js) - Google Analytics