Skip to content

add subdomain support#8

Merged
johnpryan merged 2 commits intomasterfrom
add-cors
Mar 2, 2018
Merged

add subdomain support#8
johnpryan merged 2 commits intomasterfrom
add-cors

Conversation

@johnpryan
Copy link
Copy Markdown
Collaborator

@johnpryan johnpryan commented Feb 21, 2018

This is a test branch that enables CORS support. I still need to do some testing to see if this improves performance for various map providers

to use, you can put the {s} tag in your URL template and supply the subdomains:

layers: [
  new TileLayerOptions(
    urlTemplate:
        "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
    subdomains: ['a','b','c']
  ),
  new MarkerLayerOptions(markers: markers)
],

FYI @wmleler

@johnpryan johnpryan merged commit d39dfe2 into master Mar 2, 2018
@herry1234 herry1234 mentioned this pull request Mar 16, 2018
@johnpryan johnpryan deleted the add-cors branch June 6, 2019 23:02
rekire added a commit to rekire/flutter_map_fork that referenced this pull request Apr 26, 2026
This change fixes this assertion error:

The following assertion was thrown while handling a pointer data packet: not a polygon 'package:flutter_map/src/misc/point_in_polygon.dart': Failed assertion: line 10 pos 10: 'len >= 3' When the exception was thrown, this was the stack: fleaflet#2 isPointInPolygon (package:flutter_map/src/misc/point_in_polygon.dart:10:10) fleaflet#3 _PolygonPainter.elementHitTest.<anonymous> (package:flutter_map/src/layer/polygon_layer/painter.dart:85:17) fleaflet#4 _PolygonPainter.elementHitTest (package:flutter_map/src/layer/polygon_layer/painter.dart:90:10) fleaflet#5 HitDetectablePainter.hitTest (package:flutter_map/src/layer/shared/layer_interactivity/internal_hit_detectable.dart:75:11) fleaflet#6 HitTestRequiresCameraOrigin.hitTest (package:flutter_map/src/layer/shared/layer_interactivity/internal_hit_detectable.dart:112:18) fleaflet#7 RenderCustomPaint.hitTestSelf (package:flutter/src/rendering/custom_paint.dart:569:43) fleaflet#8 RenderBox.hitTest (package:flutter/src/rendering/box.dart:2953:58)</anonymous>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant