在gmap上突出显示了一个国家的具体状态 [英] showing specific state of a country on gmap highlighted

查看:106
本文介绍了在gmap上突出显示了一个国家的具体状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示一个国家的特定状态作为突出显示,并保留阴影区域。

我想实现像



I wants to show specific state of a country as highlighted and remaining area in shadow.

I wants to implement like http://www.redfin.com/homes-for-sale#!disp_mode=M&lat=29.770534985365693&long=-95.21904093471284&market=houston&sf=1,2&v=8&zoomLevel=8

I had searched about this and what I understand that, I needs to use overlay for that.

I have one question,

Would I needs to provide lat and lng for borders or it can be achieved by providing some parameter like state code etc.

Any example of showing shadow and highlighted area will be great help.

解决方案

Would I needs to provide lat and lng for borders

You need access to the to the coordinates of the borders, then make them a hole in a polygon that covers the world (or at least the area of interest).

There are options:

这篇关于在gmap上突出显示了一个国家的具体状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆